示例#1
0
    def get_person(self):
        """
        Lazy instantiation of property - will fetch from Highrise.

        NB This may result in a network API call.
        """
        if self._person is None:
            if self.highrise_id is None:
                return None
            else:
                self._person = Person.get(self.highrise_id)
        return self._person
示例#2
0
 def highrise_import_tasks_of_person(cls, id):
     person = Person.get(id)
     tasks = person.tasks
     return tasks
示例#3
0
 def highrise_import_tags_of_person(cls, request):
     person = Person.get(request.id)
     tags = person.tags
     return tags
示例#4
0
 def highrise_import_notes_of_person(cls, id):
     person = Person.get(id)
     notes = person.notes
     return notes
示例#5
0
 def highrise_import_tasks_of_person(cls, id):
     person = Person.get(id)
     tasks = person.tasks
     return tasks
示例#6
0
 def highrise_import_tags_of_person(cls, request):
     person = Person.get(request.id)
     tags = person.tags
     return tags
示例#7
0
 def highrise_import_notes_of_person(cls, id):
     person = Person.get(id)
     notes = person.notes
     return notes