Esempio n. 1
0
 def _getPersonaUpdateVCard(self):
   
     personaKey = self.getRequiredParameter('key')
     persona = Persona.get(personaKey)
     if persona.vcardNeedsUpdating:
         reallyGenerateVCard(persona)
         
     return persona
Esempio n. 2
0
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]