Esempio n. 1
0
 def _set_scheduleEtags(self, value):
     if value:
         etags = [davxml.GETETag.fromString(etag) for etag in value]
         self.properties()[PropertyName.fromElement(
             customxml.TwistedScheduleMatchETags
         )] = customxml.TwistedScheduleMatchETags(*etags)
     else:
         try:
             del self.properties()[PropertyName.fromElement(
                 customxml.TwistedScheduleMatchETags)]
         except KeyError:
             pass
Esempio n. 2
0
 def _get_scheduleEtags(self):
     return tuple([
         str(etag) for etag in self.properties().get(
             PropertyName.fromElement(customxml.TwistedScheduleMatchETags),
             customxml.TwistedScheduleMatchETags()).children
     ])