def _getPersonaUpdateVCard(self): personaKey = self.getRequiredParameter('key') persona = Persona.get(personaKey) if persona.vcardNeedsUpdating: reallyGenerateVCard(persona) return persona
def getVCard(contactID): # This is 3 Datastore fetches: Contact, Psinque, Persona logging.info("Getting vCard for Contact " + contactID) contact = Contact.get(contactID) persona = contact.incoming.persona if persona.vcardNeedsUpdating: reallyGenerateVCard(persona) return [persona.vcard, persona.vcardMTime, persona.vcardMD5]