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)
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)
def __init__(self, ofattribs): Context.__init__(self, name=ofattribs['name']) self.ofattribs = ofattribs