web/views/undohistory.py
changeset 10662 10942ed172de
parent 8292 6f2de09b29e8
child 10666 7f6b5f023884
equal deleted inserted replaced
10661:e6eb0c7c2e98 10662:10942ed172de
    44         assert not set(action_type) - set('CUDAR')
    44         assert not set(action_type) - set('CUDAR')
    45         self.action_type = action_type
    45         self.action_type = action_type
    46 
    46 
    47     def __str__(self):
    47     def __str__(self):
    48         return '%s(%s)' % (self.__class__.__name__, ', '.join(
    48         return '%s(%s)' % (self.__class__.__name__, ', '.join(
    49             "%s=%v" % (str(k), str(v)) for k, v in kwargs.iteritems() ))
    49             "%s=%v" % (str(k), str(v)) for k, v in kwargs.items() ))
    50 
    50 
    51     def __call__(self, cls, req, tx_action=None, **kwargs):
    51     def __call__(self, cls, req, tx_action=None, **kwargs):
    52         # tx_action is expected to be a transaction.AbstractAction
    52         # tx_action is expected to be a transaction.AbstractAction
    53         if not isinstance(tx_action, tx.AbstractAction):
    53         if not isinstance(tx_action, tx.AbstractAction):
    54             return 0
    54             return 0