You Are Here:

Community: Developer Discussion Boards

#1 Old Personal Calendar DB - 2008-05-19, 14:45

Join Date: May 2008
Posts: 81
nufun
Offline
Regular Contributor
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?
Reply With Quote

#2 Old Re: Personal Calendar DB - 2008-05-19, 14:51

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
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
Reply With Quote

#3 Old Re: Personal Calendar DB - 2008-05-19, 14:59

Join Date: May 2008
Posts: 81
nufun
Offline
Regular Contributor
Ok, in this way I get no errors, but if when I add some appointment they are not shown in my agenda.
Reply With Quote

#4 Old Re: Personal Calendar DB - 2008-05-19, 15:12

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
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
Reply With Quote

#5 Old Re: Personal Calendar DB - 2008-05-19, 15:23

Join Date: May 2008
Posts: 81
nufun
Offline
Regular Contributor
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.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! PC-Suite does not restore Calendar on 6610i unifav General Discussion 1 2007-05-18 07:41
Help! PC-Suite does not restore Calendar on 6610i unifav PC Suite API and PC Connectivity SDK 0 2007-05-14 15:55
How to avoid insertion of duplicate entries in device calendar?? symnewbie General Symbian C++ 1 2005-10-27 23:52
Problem in Deleting all the calendar entries? symnewbie General Symbian C++ 0 2005-06-17 15:19
9210 calendar compatible with Outlook calendar ?? andre456 Symbian User Interface 0 2002-09-25 20:25

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia