示例#1
0
文件: steps.py 项目: mpmedia/newebe
def create_a_default_contact(step):
    contact = Contact()
    contact.url = u"http://default:8000/"
    contact.slug = slugify(contact.url)
    contact.state = STATE_TRUSTED
    contact.description = "desc 1"
    contact.name = "default contact 1"
    contact.save()
示例#2
0
def create_a_default_contact(step):
    contact = Contact()
    contact.url = u"http://default:8000/"
    contact.slug = slugify(contact.url)
    contact.state = STATE_TRUSTED
    contact.description = "desc 1"
    contact.name = "default contact 1"
    contact.save()
示例#3
0
    def asContact(self):
        '''
        Return current user data as a Contact object.
        '''
        contact = Contact()
        contact.url = self.url
        contact.key = self.key
        contact.name = self.name
        contact.description = self.description
        contact.date = self.date

        return contact
示例#4
0
    def asContact(self):
        '''
        Return current user data as a Contact object.
        '''
        contact = Contact()
        contact.url = self.url
        contact.key = self.key
        contact.name = self.name
        contact.description = self.description
        contact.date = self.date

        return contact