commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5855 - trunk/gnue-appserver/src


From: johannes
Subject: r5855 - trunk/gnue-appserver/src
Date: Wed, 2 Jun 2004 08:13:12 -0500 (CDT)

Author: johannes
Date: 2004-06-02 08:13:11 -0500 (Wed, 02 Jun 2004)
New Revision: 5855

Modified:
   trunk/gnue-appserver/src/geasSession.py
Log:
Removed obsolete parameter of __confirmOperation () and __cancelOperation ()


Modified: trunk/gnue-appserver/src/geasSession.py
===================================================================
--- trunk/gnue-appserver/src/geasSession.py     2004-06-02 12:42:35 UTC (rev 
5854)
+++ trunk/gnue-appserver/src/geasSession.py     2004-06-02 13:13:11 UTC (rev 
5855)
@@ -173,25 +173,23 @@
   # Cancel all changes of an operation
   # ---------------------------------------------------------------------------
 
-  def __cancelOperation (self, operation):
-    if self.__operation == operation:
-      try:
-        self.__connection.cancelChanges ()
+  def __cancelOperation (self):
+    try:
+      self.__connection.cancelChanges ()
 
-      finally:
-        self.__operation = None
+    finally:
+      self.__operation = None
 
   # ---------------------------------------------------------------------------
   # Confirm all changes of an operation
   # ---------------------------------------------------------------------------
 
-  def __confirmOperation (self, operation):
-    if self.__operation == operation:
-      try:
-        self.__connection.confirmChanges ()
+  def __confirmOperation (self):
+    try:
+      self.__connection.confirmChanges ()
 
-      finally:
-        self.__operation = None
+    finally:
+      self.__operation = None
 
 
   # ---------------------------------------------------------------------------
@@ -401,12 +399,12 @@
 
     except:
       if opControl:
-        self.__cancelOperation ('store')
+        self.__cancelOperation ()
       raise
 
     else:
       if opControl:
-        self.__confirmOperation ('store')
+        self.__confirmOperation ()
 
     return result
 
@@ -435,12 +433,12 @@
 
     except:
       if opControl:
-        self.__cancelOperation ('delete')
+        self.__cancelOperation ()
       raise
 
     else:
       if opControl:
-        self.__confirmOperation ('delete')
+        self.__confirmOperation ()
 
 
   # ---------------------------------------------------------------------------
@@ -462,11 +460,11 @@
 
     except:
       if opControl:
-        self.__cancelOperation ('call')
+        self.__cancelOperation ()
 
     else:
       if opControl:
-        self.__confirmOperation ('call')
+        self.__confirmOperation ()
 
     return result
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]