Lines Matching refs:contact
103 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
104 self.send_form('Edit Contact', '/edit_contact', id, contact.handle,
105 ContactForm(instance=contact))
109 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
110 data = ContactForm(data=self.request.POST, instance=contact)
119 self.send_form('Edit Contact', '/edit_contact', id, contact.handle, data)
126 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
127 contact.deleted = True
128 contact.updated = datetime.datetime.utcnow()
129 contact.put()
143 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
145 'avatar': contact.avatar,
154 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
157 contact.avatar = db.Blob(avatar)
158 contact.updated = datetime.datetime.utcnow()
159 contact.put()
171 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
172 if (contact.avatar):
174 self.response.out.write(contact.avatar)