python kolab connection

Stéphane Konstantaropoulos skonstant at sgul.ac.uk
Fri Nov 3 12:43:36 CET 2006


Le vendredi 03 nov 2006 12:10, Dick Kniep a écrit :
> Hi list,
>
> We have built an application in python / wxPython and would like to connect
> to Kolab. I want to make appointments in Kolab from my application, and
> want to read the appointments from Kolab in my application. I have found
> documentation on an XML interface, but have no examples. So I would like to
> develop a python interface to Kolab. (And when it is ready will make it
> opensource).
>
> The way it should work is something along the following line:
>
> --------
> def example():
> 	import kolab
> 	kolab.connect(host='kolabhost.com', userid='myuserid')
> 	calendar = kolab.getcalendar(userid='myuserid')
> 	appointment = calendar.appointment(appointment_id=12)
> 	dailyappointments = calendar.dailyappointment(date=now())
>
> --------
> The calendar is an object instance that contains all appointments (maybe
> only in the future) of the userid it is requested for. Than an individual
> appointment can be retrieved based on the id of the appointment.
>
> Furthermore dailyappointments is a list of appointments of a specific day
> (or maybe week, month)
>
> Has anyone leads on how to do this?
>
> Cheers
>
> D.Kniep
>

Nice one, I'd like to be able to do that too from python for our Zope / Plone 
portal.

The calendar is a IMAP box, so you need to use the imap module in python: 
http://docs.python.org/lib/module-imaplib.html

The calendar mailbox is just often called "Calendar" but could be different. 
The appointments are separate messages with an attachment in a specific XML 
format.

The xml format is described in: 
http://www.kolab.org/doc/kolabformat-2.0rc3-html/index.html

Keep us updated of your progress, I would be happy to help for this.

List: Is there any specific annotation on the mailbox that states it is a 
calendar?

Cheers,
-- 
Stéphane Konstantaropoulos <skonstant at sgul.ac.uk>
-- Web Developer - Computing Services
--- St George's University of London
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/users/attachments/20061103/0ae4c005/attachment.sig>


More information about the users mailing list