[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/tests - testZopePublication.py:1.11
Jeremy Hylton
jeremy@zope.com
Thu, 18 Jul 2002 12:04:39 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/tests
In directory cvs.zope.org:/tmp/cvs-serv19797/Zope/App/ZopePublication/tests
Modified Files:
testZopePublication.py
Log Message:
Import get_transaction() from Transaction.
XXX I'm not sure if the change in ZopePublication.py is correct,
because it was merely testing for the presence of get_transaction() in
builtins. Since that behavior is going away, I'm not sure if it
should always import get_transaction() or always use its stub
implementations. The former makes more sense.
=== Zope3/lib/python/Zope/App/ZopePublication/tests/testZopePublication.py 1.10 => 1.11 ===
from Zope.ComponentArchitecture.GlobalServiceManager import serviceManager
+from Transaction import get_transaction
+
class BasePublicationTests(PlacelessSetup, unittest.TestCase):
klass = ZopePublication
@@ -63,7 +65,6 @@
if app is None:
from Zope.App.OFS.Content.Folder.RootFolder import RootFolder
- from Transaction import get_transaction
app = RootFolder()
root[ZopePublication.root_name] = app