コード例 #1
0
ファイル: handlers.py プロジェクト: mike-perdide/newebe
    def get(self):
        '''
        Retrieves whole contact list at JSON format.
        '''
        contacts = ContactManager.getContacts()

        self.return_documents(contacts)
コード例 #2
0
ファイル: steps.py プロジェクト: mike-perdide/newebe
def get_contacts(step):
    world.contacts = ContactManager.getContacts()
コード例 #3
0
ファイル: steps.py プロジェクト: mike-perdide/newebe
def set_first_contact_state_as_error(step):
    contact = ContactManager.getContacts().first()
    contact.state = STATE_ERROR
    contact.save()