Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Leonardo Lazzaro
    @llazzaro
    You can go to the admin of your app and create events, then you will see that on the calendar
    @smartt did you do fixes on the code? let me know so I can fix them
    smartt
    @smartt
    @llazzaro The changes for python 2.7 were minimal. First, instead of using from builtins import foo, I used from __builtin__ import foo; and instead of period = next(period), I used period = period.__next__(). However, if you're not aiming for python 2.x support, perhaps you don't need the changes (and I don't know if they still work with python 3.x)
    smartt
    @smartt
    Unfortunately, I don't have a clean patch. I've sort of been gutting things so that I can build calendars on-the-fly with sets of un-saved Events (and Calendars.)
    My use case involves filtering on a model in django Admin, then showing a calendar representation of results. For example, and editorial team can filter their articles, then see a calendar view of the upcoming publish dates.
    I don't save any of this in the Event or Calendar tables though. Instead, my GET_EVENTS_FUNC function can basically take the same QuerySet filters that the Admin uses, and map the results to in-memory Event objects.
    Tristan McCormick
    @TristanJMcCormick
    Quick Question: I see relations of events to generic objects as a feature but how is that done programatically?
    Leonardo Lazzaro
    @llazzaro

    here is an example
    data = {
    ... 'title': 'Test1',
    ... 'start': datetime.datetime(2008, 1, 1),
    ... 'end': datetime.datetime(2008, 1, 11)
    ... }

    event1 = Event(**data)
    event1.save()
    user1 = User(username='alice')
    user1.save()
    event1.create_relation(user1, 'owner')

    Then you can use

    user = User.objects.get(username = 'alice')
    EventRelation.objects.get_events_for_object(user, 'owner', inherit=False)
    see : https://github.com/llazzaro/django-scheduler/blob/master/schedule/models/events.py#L241

    hope it helps
    Steve Pomeroy
    @xxv
    To be clear, in your example the arbitrary object is a user, yes? (I ask, because I know that the Event also supports associations with users directly)
    It may be helpful to describe that using a generic model that isn't related to the other functionality.
    (or perhaps I don't actually understand its use)
    Steve Pomeroy
    @xxv
    I don't see any, but has there been any work to get the repeating events going in the iCal export?
    @llazzaro Not sure how closely you follow this chat, but I am using your module and would very much like to help extend the iCal support fully. :-)
    Leonardo Lazzaro
    @llazzaro
    hi! I just merged a pull request. Swappable model base classes #110 check it out here llazzaro/django-scheduler#110
    this is only available in dev version (install it from git with pip)
    it will be great to add that support
    I don't have much time to do something, but I will be open to merge pull requests
    fell free to open issues also
    You can relate the event with any model that you want
    Leonardo Lazzaro
    @llazzaro
    remeber that by any model I mean any django model and only that. it must have a content_type
    thanks for using django-scheduler
    Steve Pomeroy
    @xxv
    Thanks for pushing those changes!
    Steve Pomeroy
    @xxv
    I pulled the rrule string generator out from vobject and grafted it in. The first pass at this is here https://github.com/xxv/django-scheduler/tree/ical-repeat
    It's not yet ready for a PR yet. I still need to add support for exceptions.
    Steve Pomeroy
    @xxv
    oh, I was having an issue that I haven't been able to trace yet: for the various day views, it seems as though it doesn't start at the beginning of the day: http://xxv.so/0xd635330f any idea where I might start going to fix that?
    It looks like a timezone issue, so I'm a little worried :-)
    DanielStevenLewis
    @DanielStevenLewis
    Does only https://github.com/llazzaro/django-scheduler/tree/develop support Python3? If so, how do I install the development branch?
    Enmanuel Rivera
    @enmanuelr
    I know the docs clearly state this app works on django 1.7, but is there any patch to get it backwards compatible with 1.6?
    Leonardo Lazzaro
    @llazzaro
    @DanielStevenLewis do not use develop branch. try python3 with master
    @enmanuelr you can try an older versions. I think support for django 1.7 was added on 0.7.4 . you should try version 0.7.3 (pip install django-scheduler==0.7.3)
    Portia Burton
    @pkafei
    I am running the sample schedule sampler on my local server. I can see the calendar, but not sure how user can add an appointment to the calendar
    Portia Burton
    @pkafei
    Oh, never mind I see that you can add dates in admin
    NylonPython
    @NylonPython
    Hi everyone, does this app support Django 1.8 or just 1.7?
    N
    @nwaxiomatic
    1.8, but there was a recent change in 1.8 that made the app "slower"
    due to prefetching
    Leonardo Lazzaro
    @llazzaro
    @pkafei you can add events form the normal views also. but you need to configure the permissions. after some fix the default permission is to deny everything.
    I started to push new bootstrap templates to the repository. let me know if someone had problems
    N
    @nwaxiomatic
    @llazzaro what do you have going with the bootstrap templates?
    Leonardo Lazzaro
    @llazzaro
    I migrated the templates to use bootstrap. and also removed jQuery-ui
    modals are now bootstrap also
    N
    @nwaxiomatic
    Is this also fullcalendar support? And models for editing?
    Modals *
    Leonardo Lazzaro
    @llazzaro
    old html files in the template directory. no full calendar support
    N
    @nwaxiomatic
    I got the fullcalendar all but totally functional
    just need the modals for event vs occurrence
    N
    @nwaxiomatic
    just did pull request, all basic functionality working. travis is failing, though (and I never know why)
    Alexandre Boukhlif
    @blokfyuh
    Hi llazzaro, are you around ?