示例#1
0
 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))
示例#2
0
 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))
示例#3
0
 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)
示例#4
0
 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)
     })
示例#5
0
 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)})