| Reply | « Previous Thread | Next Thread » |
|
Hi! I noticed an unpleasent behaviour of the calendar module.
Everything works excelent for me, till I try to find appointments or any items on the last day of the month while there is an item (appointment or whatever) on the first day of the next month. Here's an example: Code:
import calendar, time
firstday = time.mktime((2009,1,1,0,0,0,0,0,0))
lastday=firstday - 3600*24
a=calendar.open()
b=a.add_appointment()
b.content='FIRST DAY TEST EVENT'
b.set_time(firstday+3600,firstday+7200)
b.commit()
b= a.daily_instances(firstday)
day1=[]
for i in b:
#if i.values()[1]<=firstday + 3600*24:
day1.append(i.values()[0])
print day1
print "Now notice that no events with the same id like previously should be displayed"
b= a.daily_instances(lastday)
day2=[]
for i in b:
#if i.values()[1]<=lastday + 3600*24:
day2.append(i.values()[0])
print day2
Greatings, Ranza |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
Hi Ranza,
I would try doing an example for you but I'm in a hurry now ![]() Maybe when I come back I can do this ![]() EDIT: Sorry, you really used daily_instances. Hope it helps, Rafael.
Last edited by Rafael T. : 2008-10-25 at 12:18.
|
|
well, I'm using daily_instances method, find_instances wouldn't work here since it needs a substring
|
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
Sorry, Ranza
I swear I saw find_instances in the code ![]() I'm a bit lazy yet, since I have just woke up. Sorry for the wrong answer, when I come back I'll try to do an example for you! BR, Rafael. |
|
So you think that I'm not using it properly?
I think that I do and it's a bug. Anyway I found a temporary walkthru for this bug, so you don't have to invent anything new. Better notify those guy's coding Pys60 |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Offline
Forum Nokia Champion
|
|
|
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
Yes, you should report the bug on the link Bogdan provided, so they can fix it and get it to work on the next version.
I was going to do another code with a improved solution, but as you said you have already done this, it won't be necessary ![]() BR, Rafael.
Last edited by Rafael T. : 2008-10-26 at 13:53.
|
|
Well, would someone report this bug for me cause I don't have an account on source forge but this what I've written here should be enough for bug description
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Canvas autorotate & Calendar Bug | Ranza | Python | 0 | 2008-10-10 09:54 |
| wierd bug with calendar API on 3rd edition MR | raysky | General Symbian C++ | 1 | 2008-08-08 06:34 |
| Native Calendar : Bug?? | Symbian_Neil | General Symbian C++ | 2 | 2007-10-05 10:09 |
| PC Suite 6.70.22 calendar synch bug | nsmeds | PC Suite API and PC Connectivity SDK | 6 | 2006-04-04 23:51 |
| Is this a calendar bug??? | ahmedb_ | Mobile Java General | 1 | 2003-10-07 21:16 |