(self, contact, verb, docType, doc=None)
Creates an activity that describes a contact profile modification.
Creates an activity that describes a contact profile modification.
Creates an activity that describes a contact profile modification .
def create_modify_activity(self, contact, verb, docType, doc=None):
        '''
        Creates an activity that describes a contact profile modification.
        '''

        if doc:
            docId = doc._id
        else:
            docId = "none"

        activity = Activity(
             authorKey=contact.key,
             author=contact.name,
             verb=verb,
             docType=docType,
             method="PUT",
             docId=docId,
             isMine=False
        )
        activity.save()
def create_modify_activity ( self , contact , verb , docType , doc = None ) : if doc : docId = doc . _id else : docId = "none" activity = Activity ( authorKey = contact . key , author = contact . name , verb = verb , docType = docType , method = "PUT" , docId = docId , isMine = False ) activity . save ( )