
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()
add_new_entry()
print 'Current Entries:%i'%len(db)
Finally the entry is printed in the Current entries.
Best Regards,
Croozeus