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

        self.return_documents(contacts)
示例#2
0
文件: steps.py 项目: mpmedia/newebe
def get_contacts(step):
    world.contacts = ContactManager.getContacts()
示例#3
0
文件: steps.py 项目: mpmedia/newebe
def set_first_contact_state_as_error(step):
    contact = ContactManager.getContacts().first()
    contact.state = STATE_ERROR
    contact.save()
示例#4
0
def get_contacts(step):
    world.contacts = ContactManager.getContacts()
示例#5
0
def set_first_contact_state_as_error(step):
    contact = ContactManager.getContacts().first()
    contact.state = STATE_ERROR
    contact.save()
示例#6
0
 def get(self):
     '''
     Retrieves whole contact list at JSON format.
     '''
     contacts = ContactManager.getContacts()
     self.return_documents(contacts)