server/hook.py
changeset 5238 31c12863fd9d
parent 5201 2b4267157f85
parent 5220 42f854b6083d
child 5302 dfd147de06b2
--- a/server/hook.py	Tue Apr 13 19:43:30 2010 +0200
+++ b/server/hook.py	Tue Apr 13 19:43:51 2010 +0200
@@ -369,14 +369,14 @@
       revert things (including the operation which made fail the commit)
 
     rollback:
-      the transaction has been either rollbacked either
-      * intentionaly
-      * a precommit event failed, all operations are rollbacked
-      * a commit event failed, all operations which are not been triggered for
-        commit are rollbacked
+      the transaction has been either rollbacked either:
+       * intentionaly
+       * a precommit event failed, all operations are rollbacked
+       * a commit event failed, all operations which are not been triggered for
+         commit are rollbacked
 
-    order of operations may be important, and is controlled according to:
-    * operation's class
+    order of operations may be important, and is controlled according to
+    the insert_index's method output
     """
 
     def __init__(self, session, **kwargs):
@@ -475,7 +475,7 @@
     try:
         session.transaction_data[datakey].add(value)
     except KeyError:
-        opcls(session, *opkwargs)
+        opcls(session, **opkwargs)
         session.transaction_data[datakey] = set((value,))