×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    May 2008
    Posts
    86

    Personal Calendar DB

    I've read it is possible to create more than one calendar db on a phone, but when I try to create a new calendar db on my E65,

    new_cal=calendar.open('u"E:\\Python\\cal_test_db.cdb"','n')

    I get nothing works.
    Where is my mistake?

  2. #2
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,801

    Re: Personal Calendar DB

    Quote Originally Posted by nufun View Post
    I've read it is possible to create more than one calendar db on a phone, but when I try to create a new calendar db on my E65,

    new_cal=calendar.open('u"E:\\Python\\cal_test_db.cdb"','n')

    I get nothing works.
    Where is my mistake?
    Try this

    Code:
    new_cal=calendar.open('cal_test_db.cdb','n')
    Best Regards,
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  3. #3
    Regular Contributor
    Join Date
    May 2008
    Posts
    86

    Re: Personal Calendar DB

    Ok, in this way I get no errors, but if when I add some appointment they are not shown in my agenda.

  4. #4
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,801

    Re: Personal Calendar DB

    Quote Originally Posted by nufun View Post
    Ok, in this way I get no errors, but if when I add some appointment they are not shown in my agenda.
    Below is how you can add an entry as an appointment, Check up with your code.

    The entry gets added when calling the function add_new_entry()

    Code:
    def add_new_entry():
        new_entry=db.add_appointment() # new appointment.
        new_entry.set_time(now+week,now+week+hour)
        new_entry.alarm=now+week-5*minute
        new_entry.content='the meeting'
        new_entry.location='conference room 01'
        new_entry.replication='private'
        if e32.s60_version_info[0]>=2:
            new_entry.priority=1 # high priority.
        new_entry.commit()
    
    add_new_entry()
    print 'Current Entries:%i'%len(db)
    Finally the entry is printed in the Current entries.

    Best Regards,
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  5. #5
    Regular Contributor
    Join Date
    May 2008
    Posts
    86

    Re: Personal Calendar DB

    I already got it to works.
    I know that my cal_test_db.cdb has 6 entries now, but I would like to access them through the agenda of my E65.

Similar Threads

  1. Help! PC-Suite does not restore Calendar on 6610i
    By unifav in forum General Development Questions
    Replies: 1
    Last Post: 2007-05-18, 06:41
  2. Help! PC-Suite does not restore Calendar on 6610i
    By unifav in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2007-05-14, 14:55
  3. Replies: 1
    Last Post: 2005-10-27, 22:52
  4. Problem in Deleting all the calendar entries?
    By symnewbie in forum Symbian
    Replies: 0
    Last Post: 2005-06-17, 14:19
  5. 9210 calendar compatible with Outlook calendar ??
    By andre456 in forum Symbian User Interface
    Replies: 0
    Last Post: 2002-09-25, 19:25

Posting Permissions

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