예제 #1
0
파일: handlers.py 프로젝트: mpmedia/newebe
    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)