コード例 #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
ファイル: handlers.py プロジェクト: HeartbliT/IReVeAI
 def get(self):
     '''
     Retrieves whole contact list at JSON format.
     '''
     contacts = ContactManager.getContacts()
     self.return_documents(contacts)