[Zope3-checkins] CVS: Zope3/src/ZODB - Connection.py:1.148

Jeremy Hylton jeremy at zope.com
Thu Apr 15 12:22:39 EDT 2004


Update of /cvs-repository/Zope3/src/ZODB
In directory cvs.zope.org:/tmp/cvs-serv10171

Modified Files:
	Connection.py 
Log Message:
Make the warnings text match.


=== Zope3/src/ZODB/Connection.py 1.147 => 1.148 ===
--- Zope3/src/ZODB/Connection.py:1.147	Wed Apr 14 16:45:37 2004
+++ Zope3/src/ZODB/Connection.py	Thu Apr 15 12:22:38 2004
@@ -243,7 +243,8 @@
         method.  You can pass a transaction manager (TM) to DB.open()
         to control which TM the Connection uses.
         """
-        warnings.warn("getTransaction() is deprecated.",
+        warnings.warn("getTransaction() is deprecated. "
+                      "Use the txn_mgr argument to DB.open() instead.",
                       DeprecationWarning)
         return self._txn_mgr.get()
 




More information about the Zope3-Checkins mailing list