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()
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