# Thread: Personal Calendar DB

1. 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. Originally Posted by nufun
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

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

4. Originally Posted by nufun
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()

print 'Current Entries:%i'%len(db)
Finally the entry is printed in the Current entries.

Best Regards,
Croozeus

5. 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.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.