示例#1
0
 def txn(self):
     """Open up a new transaction, so that you can commit a change
        to the repository"""
     assert self.user is not None, (
            "If you would like to commit changes to the repository, "
            "you must supply a user object when you initialize "
            "the repository object")
     return Txn(self)
示例#2
0
 def txn(self):
     """Create a transaction"""
     return Txn(self)