def shownDataForUser(self, user): return dict( email=user.email, userid=user.userid, assurances=Assurance.getByUser(user), hash=user.hash, credentials=Credential.getByUser_as_dictlist(user))
def as_dict(self, user, **kwargs): kwargs.update({'email':user.email, 'userid':user.userid, 'assurances':Assurance.getByUser(user), 'hash': user.hash, 'credentials': Credential.getByUser_as_dictlist(user) }) ret = json.dumps(kwargs) return self.make_response(ret,200)
def addUserDataToDict(self, user, kwargs): return kwargs.update({ 'email': user.email, 'userid': user.userid, 'assurances': Assurance.getByUser(user), 'hash': user.hash, 'credentials': Credential.getByUser_as_dictlist(user) })
def addUserDataToDict(self, user, kwargs): return kwargs.update({'email':user.email, 'userid':user.userid, 'assurances':Assurance.getByUser(user), 'hash':user.hash, 'credentials':Credential.getByUser_as_dictlist(user)})