You Are Here:

Community: Developer Discussion Boards

#1 Old Exclamation Calendar bug - 2008-10-25, 10:28

Join Date: Sep 2008
Posts: 17
Ranza
Offline
Registered User
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
For everyone having the same problem I found a temporary solution working even if the event is in a repeat loop. Simply uncomment lines from my code and do a tab before next command

Greatings, Ranza
Reply With Quote

#2 Old Re: Calendar bug - 2008-10-25, 12:03

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
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.
Reply With Quote

#3 Old Re: Calendar bug - 2008-10-25, 12:13

Join Date: Sep 2008
Posts: 17
Ranza
Offline
Registered User
well, I'm using daily_instances method, find_instances wouldn't work here since it needs a substring
Reply With Quote

#4 Old Re: Calendar bug - 2008-10-25, 12:20

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
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.
Reply With Quote

#5 Old Re: Calendar bug - 2008-10-25, 12:26

Join Date: Sep 2008
Posts: 17
Ranza
Offline
Registered User
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
Reply With Quote

#6 Old Re: Calendar bug - 2008-10-25, 12:33

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
If you strongly believe this is a bug you can check here if it has already been reported and if it hasn't, you can submit it here.
Reply With Quote

#7 Old Re: Calendar bug - 2008-10-25, 16:21

Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Send a message via Skype™ to Rafael T.
Rafael T.'s Avatar
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.
Reply With Quote

#8 Old Re: Calendar bug - 2008-10-25, 16:48

Join Date: Sep 2008
Posts: 17
Ranza
Offline
Registered User
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 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
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

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