[Zope-Checkins] SVN: Zope/trunk/lib/python/ Moved ZApplication from ZODB to the App package.

Jim Fulton jim at zope.com
Mon May 9 09:27:01 EDT 2005


Log message for revision 30305:
  Moved ZApplication from ZODB to the App package.
  

Changed:
  U   Zope/trunk/lib/python/App/RefreshFuncs.py
  A   Zope/trunk/lib/python/App/ZApplication.py
  U   Zope/trunk/lib/python/OFS/tests/testAppInitializer.py
  U   Zope/trunk/lib/python/OFS/tests/testProductInit.py
  U   Zope/trunk/lib/python/Testing/ZopeTestCase/sandbox.py

-=-
Modified: Zope/trunk/lib/python/App/RefreshFuncs.py
===================================================================
--- Zope/trunk/lib/python/App/RefreshFuncs.py	2005-05-09 07:59:33 UTC (rev 30304)
+++ Zope/trunk/lib/python/App/RefreshFuncs.py	2005-05-09 13:27:00 UTC (rev 30305)
@@ -326,7 +326,7 @@
 
 def setupAutoRefresh(jar):
     # Install hook.
-    from ZODB.ZApplication import connection_open_hooks
+    from App.ZApplication import connection_open_hooks
     connection_open_hooks.append(autoRefresh)
     # Init mod times.
     checkAutoRefresh(jar)

Copied: Zope/trunk/lib/python/App/ZApplication.py (from rev 30304, ZODB/tags/3.4.0a7/src/ZODB/ZApplication.py)

Modified: Zope/trunk/lib/python/OFS/tests/testAppInitializer.py
===================================================================
--- Zope/trunk/lib/python/OFS/tests/testAppInitializer.py	2005-05-09 07:59:33 UTC (rev 30304)
+++ Zope/trunk/lib/python/OFS/tests/testAppInitializer.py	2005-05-09 13:27:00 UTC (rev 30305)
@@ -51,7 +51,7 @@
     return ZConfig.loadSchema(schemafile)
 
 def getApp():
-    from ZODB.ZApplication import ZApplicationWrapper
+    from App.ZApplication import ZApplicationWrapper
     DB = getConfiguration().dbtab.getDatabase('/')
     return ZApplicationWrapper(DB, 'Application', Application, (), 'foo')()
 

Modified: Zope/trunk/lib/python/OFS/tests/testProductInit.py
===================================================================
--- Zope/trunk/lib/python/OFS/tests/testProductInit.py	2005-05-09 07:59:33 UTC (rev 30304)
+++ Zope/trunk/lib/python/OFS/tests/testProductInit.py	2005-05-09 13:27:00 UTC (rev 30305)
@@ -62,7 +62,7 @@
     return ZConfig.loadSchema(schemafile)
 
 def getApp():
-    from ZODB.ZApplication import ZApplicationWrapper
+    from App.ZApplication import ZApplicationWrapper
     DB = getConfiguration().dbtab.getDatabase('/')
     return ZApplicationWrapper(DB, 'Application', Application, (), 'foo')()
 

Modified: Zope/trunk/lib/python/Testing/ZopeTestCase/sandbox.py
===================================================================
--- Zope/trunk/lib/python/Testing/ZopeTestCase/sandbox.py	2005-05-09 07:59:33 UTC (rev 30304)
+++ Zope/trunk/lib/python/Testing/ZopeTestCase/sandbox.py	2005-05-09 13:27:00 UTC (rev 30305)
@@ -70,8 +70,9 @@
     return self.__old_bobo_traverse__(REQUEST, name)
 
 
-from ZODB.ZApplication import ZApplicationWrapper
+from App.ZApplication import ZApplicationWrapper
 if not hasattr(ZApplicationWrapper, '__old_bobo_traverse__'):
-    ZApplicationWrapper.__old_bobo_traverse__ = ZApplicationWrapper.__bobo_traverse__
+    ZApplicationWrapper.__old_bobo_traverse__ = (
+        ZApplicationWrapper.__bobo_traverse__)
     ZApplicationWrapper.__bobo_traverse__ = __bobo_traverse__
 



More information about the Zope-Checkins mailing list