Bug in evolution Module



Hi,

there seems to be a bug in the conduit evolution module (patch
attached):

in EvolutionModule.py class EvoCalendarTwoWay currently
calendar.get_object_as_string(raw) is used, this call returns a complete
VCALENDAR, but ECalComponent accepts only single VEVENTS, so using
raw.get_as_string() seems to be a better solution.

regards

christoph
--- EvolutionModule/EvolutionModule.py	2008-08-27 03:59:15.000000000 +0200
+++ /tmp/EvolutionModule.py	2008-11-14 14:21:06.000000000 +0100
@@ -213,7 +213,7 @@
         """
         raw = self.calendar.get_object(LUID, "")
         event = Event.Event()
-        event.set_from_ical_string(self.calendar.get_object_as_string(raw))
+        event.set_from_ical_string(raw.get_as_string())
         event.set_UID(raw.get_uid())
         event.set_mtime(datetime.datetime.fromtimestamp(raw.get_modified()))
         return event

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]