[Zodb-checkins] CVS: Zope3/src/zodb - interfaces.py:1.18 ztransaction.py:1.4

Anthony Baxter anthony at interlink.com.au
Mon Jul 28 11:52:00 EDT 2003


Update of /cvs-repository/Zope3/src/zodb
In directory cvs.zope.org:/tmp/cvs-serv21883

Modified Files:
	interfaces.py ztransaction.py 
Log Message:
remove the unused path="/" argument to zodb.ztransaction.Transaction.setUser()

It wasn't being used, it wasn't clear what it was meant to do, and caused
bogosity in the undo logs.


=== Zope3/src/zodb/interfaces.py 1.17 => 1.18 ===
--- Zope3/src/zodb/interfaces.py:1.17	Thu Mar 20 13:24:05 2003
+++ Zope3/src/zodb/interfaces.py	Mon Jul 28 10:51:51 2003
@@ -357,12 +357,8 @@
         added before the new text.
         """
 
-    def setUser(user_name, path="/"):
-        """Set the transaction user name.
-
-        The user is actually set to the path followed by a space and
-        the user name.
-        """
+    def setUser(user_name):
+        """Set the transaction user name."""
 
     def setExtendedInfo(name, value):
         """Set extended information."""


=== Zope3/src/zodb/ztransaction.py 1.3 => 1.4 ===
--- Zope3/src/zodb/ztransaction.py:1.3	Fri Jun  6 11:24:19 2003
+++ Zope3/src/zodb/ztransaction.py	Mon Jul 28 10:51:51 2003
@@ -41,8 +41,8 @@
         else:
             self.description = text
 
-    def setUser(self, user_name, path='/'):
-        self.user = "%s %s" % (path, user_name)
+    def setUser(self, user_name):
+        self.user = "%s" % (user_name)
 
     def setExtendedInfo(self, name, value):
         if self._extension is None:




More information about the Zodb-checkins mailing list