transaction.py
changeset 5174 78438ad513ca
parent 4913 083b4d454192
child 5423 e15abfdcce38
equal deleted inserted replaced
5173:73760bbb66bd 5174:78438ad513ca
    46     def user(self):
    46     def user(self):
    47         """return the user entity which has done the transaction,
    47         """return the user entity which has done the transaction,
    48         none if not found.
    48         none if not found.
    49         """
    49         """
    50         return self.req.execute('Any X WHERE X eid %(x)s',
    50         return self.req.execute('Any X WHERE X eid %(x)s',
    51                                 {'x': self.user_eid}, 'x').get_entity(0, 0)
    51                                 {'x': self.user_eid}).get_entity(0, 0)
    52 
    52 
    53     def actions_list(self, public=True):
    53     def actions_list(self, public=True):
    54         """return an ordered list of action effectued during that transaction
    54         """return an ordered list of action effectued during that transaction
    55 
    55 
    56         if public is true, return only 'public' action, eg not ones triggered
    56         if public is true, return only 'public' action, eg not ones triggered