×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    3

    Angry i have problem with calendar module

    i have problem with daily_instances and monthly_instance function at CalendarDb object. when i use to find todos entry it's always wrong.. but when i use to find appointment entry it's correct i don't know what happen i just change option parameter at this function to find some todo entry but it's always wrong here it's my code

    def loadAmountMeeting( aDate ):
    '''
    aDate : float time
    '''
    gCalendarDb = calendar.open()
    allEntry = gCalendarDb.daily_instances( aDate, events = 0
    , anniversaries = 0, todos = 0, appointments = 1 )
    return len( allEntry )


    def loadAmountTodo( aDate ):
    '''
    aDate : float time
    '''
    gCalendarDb = calendar.open()
    allEntry = gCalendarDb.daily_instances( aDate, events = 0
    , anniversaries = 0, todos = 1, appointments = 0 )
    return len( allEntry )


    if somebody know what's wrong with my code please tell me at this forum
    thank you everyone

  2. #2
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    295

    Re: i have problem with calendar module

    Saying "it's always wrong" does not help much. What results did you get, and what did you expected to get?

    In any case, check out this http://pymbian.sourceforge.net/misc/dashboard/, there is code that fetches todo/calendar items.

Similar Threads

  1. 6600 : Calendar alarm can't vibrate
    By Jingo Saputra in forum General Development Questions
    Replies: 1
    Last Post: 2008-01-06, 19:51
  2. Replies: 2
    Last Post: 2003-09-03, 14:47
  3. Replies: 0
    Last Post: 2003-05-26, 14:00
  4. 7210 Silent Problem
    By MarkMckim in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-18, 12:36
  5. CONE 36 in Calendar application on emulator
    By natal in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-07-25, 06:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×