transaction.py
changeset 8265 9747ab9230ad
parent 5426 0d4853a6e5ee
child 8266 704dda5c07f7
equal deleted inserted replaced
8262:272e10526679 8265:9747ab9230ad
    37     'R': _('relation removal'),
    37     'R': _('relation removal'),
    38     }
    38     }
    39 
    39 
    40 
    40 
    41 class NoSuchTransaction(RepositoryError):
    41 class NoSuchTransaction(RepositoryError):
    42     pass
    42     # Used by CubicWebException
       
    43     msg = _("there is no transaction #%s")
    43 
    44 
       
    45     def __init__(self, txuuid):
       
    46         super(RepositoryError, self).__init__(txuuid)
       
    47         self.txuuid = txuuid
    44 
    48 
    45 class Transaction(object):
    49 class Transaction(object):
    46     """an undoable transaction"""
    50     """an undoable transaction"""
    47 
    51 
    48     def __init__(self, uuid, time, ueid):
    52     def __init__(self, uuid, time, ueid):