Esempio n. 1
0
 def __init__(self, ofattribs):
     Context.__init__(self,
                      name=ofattribs['name'])
     self.ofattribs = ofattribs
     if 'persistentIdentifier' in ofattribs:
         self.link = 'omnifocus:///context/' + ofattribs['persistentIdentifier']
     self.status = u'inactive' if 'allowsNextAction' in ofattribs and ofattribs['allowsNextAction'] == 0 else u'active'
     logger.debug ('loaded context: %s %s', self.id, self.name)
Esempio n. 2
0
 def __init__(self, ofattribs):
     Context.__init__(self, name=ofattribs['name'])
     self.ofattribs = ofattribs
     self.order = ofattribs['rank']
     if 'persistentIdentifier' in ofattribs:
         self.id = ofattribs['persistentIdentifier']
         self.link = 'omnifocus:///context/' + ofattribs[
             'persistentIdentifier']
     self.status = u'inactive' if 'allowsNextAction' in ofattribs and ofattribs[
         'allowsNextAction'] == 0 else u'active'
     logger.debug('loaded context: %s %s', self.id, self.name)
Esempio n. 3
0
 def __init__(self, ofattribs):
     Context.__init__(self,
                      name=ofattribs['name'])
     self.ofattribs = ofattribs
Esempio n. 4
0
 def __init__(self, ofattribs):
     Context.__init__(self, name=ofattribs['name'])
     self.ofattribs = ofattribs