transaction.py
branchstable
changeset 5425 7c84e3f370de
parent 5423 e15abfdcce38
child 5426 0d4853a6e5ee
equal deleted inserted replaced
5421:8167de96c523 5425:7c84e3f370de
    59     def user(self):
    59     def user(self):
    60         """return the user entity which has done the transaction,
    60         """return the user entity which has done the transaction,
    61         none if not found.
    61         none if not found.
    62         """
    62         """
    63         return self.req.execute('Any X WHERE X eid %(x)s',
    63         return self.req.execute('Any X WHERE X eid %(x)s',
    64                                 {'x': self.user_eid}, 'x').get_entity(0, 0)
    64                                 {'x': self.user_eid}).get_entity(0, 0)
    65 
    65 
    66     def actions_list(self, public=True):
    66     def actions_list(self, public=True):
    67         """return an ordered list of action effectued during that transaction
    67         """return an ordered list of action effectued during that transaction
    68 
    68 
    69         if public is true, return only 'public' action, eg not ones triggered
    69         if public is true, return only 'public' action, eg not ones triggered