<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Verdana size=2>Bonjour,</FONT></DIV>
<DIV><FONT face=Verdana size=2>Je recherche un moyen simple de récupérer les
événements d'une période donnée sur un objet de type CPSSharedCalendar. J'ai vu
qu'il existait des méthodes getEvents un peu partout (CalCore, CalZope,
CPSSharedCalendar ...), mais je n'arrive pas à les faire
fonctionner.</FONT></DIV>
<DIV><FONT face=Verdana size=2>Est-ce qu'un API de CPSSharedCalendar existe
quelquepart ?</FONT></DIV>
<DIV><FONT face=Verdana size=2>Quels arguments faut-il passer à la méthode
getEvents ?</FONT></DIV>
<DIV><FONT face=Verdana size=2>J'ai essayé:</FONT></DIV>
<DIV><FONT face=Verdana size=2>calendar.getEvents([DateTime('2006/01/01'),
DateTime('2006/12/31')], None)</FONT></DIV>
<DIV><FONT face=Verdana size=2>et voici le traceback qu'il me
donne:</FONT></DIV>
<DIV><FONT face=Verdana size=2>Traceback (innermost last):<BR> Module
ZPublisher.Publish, line 115, in publish<BR> Module ZPublisher.mapply,
line 88, in mapply<BR> Module ZPublisher.Publish, line 41, in
call_object<BR> Module Shared.DC.Scripts.Bindings, line 311, in
__call__<BR> Module Shared.DC.Scripts.Bindings, line 348, in
_bindAndExec<BR> Module Products.PythonScripts.PythonScript, line 325, in
_exec<BR> Module None, line 5, in .script<BR> -
<PythonScript at /.script><BR> - Line 5<BR> Module
calcore.cal, line 837, in getEvents<BR> Module calcore.cal, line 138, in
getEvents<BR> Module Products.CalZope.storage, line 148, in
getEvents<BR> Module DateTime.DateTime, line 1142, in
__getattr__<BR>AttributeError: utctimetuple</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Quelqu'un aurait-il une idée ?</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Merci d'avance</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Cordialement</FONT></DIV>
<DIV>
<HR>
<FONT style="FONT-SIZE: 9px; COLOR: #00adce; FONT-FAMILY: Verdana"><FONT
style="FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #0c4da2">Cédric
Marfil</FONT><BR>Concepteur Réalisateur Intégrateur Confirmé<BR><B>Tél.
direct:</B> 03.20.65.34.82<BR><B>Mail:</B> <A
href="mailto:cedric.marfil@capgemini.com">cedric.marfil@capgemini.com</A><BR><BR><FONT
style="FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #0c4da2">Cap</FONT><FONT
style="FONT-WEIGHT: bold; FONT-SIZE: 10px; COLOR: #00adce">gemini</FONT><BR>181
rue Jules Delcenserie<BR>59700 Marcq en Baroeul<BR></FONT></DIV></BODY></HTML>
<table><tr><td bgcolor=#ffffff><font color=#000000>This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.<br>
<br>
</font></td></tr></table>