Jppy: Calendar support coming soon
Nicholas Piper
nick at nickpiper.co.uk
Tue Feb 13 00:02:12 GMT 2007
Hi,
*BASIC* Calendar support is in the library now:
In [1]:import jppy
In [2]:calendar = jppy.calendar()
In [3]:calendar.records(search="FOSDEM")
Out[3]:[<Event 'FOSDEM?' d:0 m:0 b:0 s:0 a:0 cat:3 type:normal uid=8793676>]
In [4]:event = calendar.records(search="FOSDEM")[0]
In [5]:event.keys()
Out[5]:['description', 'note']
I don't recommend writing events yet though, as you don't have a way
to set the date ;-) Only the keys showed by .keys() are
implemented. Obviously that is required next. I also have a framework
ready to deal with the DateBk6 'extensions', as you'll note
from class of the event:
In [6]:event.__class__
Out[6]:<class 'jppy.datebk6.Event'>
which is a wrapper around the 'real' Event object:
In [10]:event.__class__.__base__
Out[10]:<type 'jppy._jpilot.__jpilot.Event'>
Nick
--
Nick Piper, Developer, LogicaCMG http://www.nickpiper.co.uk/
GPG Encrypted mail welcome! 1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty & suffering !
More information about the Jppy
mailing list