Ejemplo n.º 1
0
 def __init__(self, ofattribs):
     Task.__init__(self,
                   name=ofattribs['name'],
                   date_completed = datetimeFromAttrib (ofattribs,'dateCompleted'),
                   date_to_start = datetimeFromAttrib (ofattribs,'dateToStart'),
                   date_due = datetimeFromAttrib (ofattribs,'dateDue'),
                   flagged = bool (ofattribs['flagged']),
                   context=None)
     self.ofattribs = ofattribs
Ejemplo n.º 2
0
 def __init__(self, ofattribs):
     Task.__init__(self,
                   name=ofattribs['name'],
                   date_completed=datetimeFromAttrib(
                       ofattribs, 'dateCompleted'),
                   date_to_start=datetimeFromAttrib(ofattribs,
                                                    'dateToStart'),
                   date_due=datetimeFromAttrib(ofattribs, 'dateDue'),
                   flagged=bool(ofattribs['flagged']),
                   context=None)
     self.ofattribs = ofattribs
Ejemplo n.º 3
0
 def __init__(self, ofattribs):
     Task.__init__(self,
                   name=ofattribs['name'],
                   date_completed = datetimeFromAttrib (ofattribs,'dateCompleted'),
                   date_to_start = datetimeFromAttrib (ofattribs,'dateToStart'),
                   date_due = datetimeFromAttrib (ofattribs,'dateDue'),
                   flagged = bool (ofattribs['flagged']),
                   context=None)
     self.ofattribs = ofattribs
     if 'persistentIdentifier' in ofattribs:
         self.link = 'omnifocus:///task/' + ofattribs['persistentIdentifier']
     noteXMLData = ofattribs['noteXMLData']
     if noteXMLData != None:
         self.note = OFNote (self, noteXMLData)
     logger.debug ('loaded task: %s %s', self.id, self.name)
Ejemplo n.º 4
0
 def __init__(self, ofattribs):
     Task.__init__(
         self,
         name=ofattribs['name'],
         date_completed=datetimeFromAttrib(ofattribs, 'dateCompleted'),
         date_to_start=datetimeFromAttrib(ofattribs, 'dateToStart'),
         date_due=datetimeFromAttrib(ofattribs, 'dateDue'),
         date_added=datetimeFromAttrib(ofattribs, 'dateAdded'),
         estimated_minutes=intFromAttrib(ofattribs, 'estimatedMinutes'),
         flagged=bool(ofattribs['flagged']),
         context=None)
     self.ofattribs = ofattribs
     self.order = ofattribs['rank']
     if 'persistentIdentifier' in ofattribs:
         self.id = ofattribs['persistentIdentifier']
         self.link = 'omnifocus:///task/' + ofattribs['persistentIdentifier']
     noteXMLData = ofattribs['noteXMLData']
     if noteXMLData != None:
         self.note = OFNote(self, noteXMLData)
     logger.debug('loaded task: %s %s', self.id, self.name)