예제 #1
0
    def get(self):
        '''
        Retrieves whole contact list at JSON format.
        '''
        contacts = ContactManager.getContacts()

        self.return_documents(contacts)
예제 #2
0
def get_contacts(step):
    world.contacts = ContactManager.getContacts()
예제 #3
0
def set_first_contact_state_as_error(step):
    contact = ContactManager.getContacts().first()
    contact.state = STATE_ERROR
    contact.save()