Commits

Frederic De Groef committed 2fba336

using a BaseCalendar.unique_name property to generate UIDs

Comments (0)

Files changed (2)

src/gehol/basecalendar.py

         self.location = kwargs['location']
         self.organizer = kwargs['organizer']
 
+
+        
     @property
     def summary(self):
         raise NotImplementedError
 
 
+
     @property
     def description(self):
         raise NotImplementedError
 
 
+
+    @property
+    def unique_name(self):
+        raise NotImplementedError
+
+
+
     def __repr__(self):
         return u"<%s object taking place on %s between %s and %s>" % ( self.__class__.__name__,
                                                                        convert_day_to_string(self.day),

src/gehol/converters/rfc5545icalwriter.py

 
 
     def make_uid(self, event):
-        t =  event.dtstart.strftime("%Y%m%dT%H%M%S")
-        n = self.name
+        t = event.dtstart.strftime("%Y%m%dT%H%M%S")
+        n = event.unique_name
         return "%s%s@%s" % (t, n, "geholimport.appspot.com")