* introduce back the optional argument to remove item

This commit is contained in:
Eray Özkural
2006-03-24 14:24:31 +00:00
parent 43f33a65d0
commit 3b2eb5fffb
+2 -1
View File
@@ -155,8 +155,9 @@ class ItemByRepoDB(object):
self.d.put(name, s, txn)
self.d.txn_proc(p, txn)
def remove_item(self, name, txn = None):
def remove_item(self, name, repo = None, txn = None):
def p(txn):
if repo == None:
repo = self.which_repo(name, txn=txn)
self.remove_item_repo(name, repo, txn=txn)
self.d.txn_proc(p, txn)