[Zope3-checkins] CVS: Zope3/src/zope/app/publication/tests - test_zopepublication.py:1.23

Philipp von Weitershausen philikon at philikon.de
Tue Feb 24 11:51:45 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/publication/tests
In directory cvs.zope.org:/tmp/cvs-serv27718/src/zope/app/publication/tests

Modified Files:
	test_zopepublication.py 
Log Message:


Folder, its interfaces, and its browser views have moved to
zope.app.folder. That includes IRootFolder and the rootFolder
factory.




=== Zope3/src/zope/app/publication/tests/test_zopepublication.py 1.22 => 1.23 ===
--- Zope3/src/zope/app/publication/tests/test_zopepublication.py:1.22	Fri Feb 20 17:02:30 2004
+++ Zope3/src/zope/app/publication/tests/test_zopepublication.py	Tue Feb 24 11:51:14 2004
@@ -11,45 +11,38 @@
 # FOR A PARTICULAR PURPOSE.
 #
 ##############################################################################
+"""
+$Id$
+"""
+
 import unittest
 import sys
-
-from zope.app import zapi
-from zope.interface.verify import verifyClass
-from zope.interface import implements, classImplements, implementedBy
+from cStringIO import StringIO
 
 from ZODB.tests.util import DB
 
-from zope.app.tests.placelesssetup import PlacelessSetup
-from zope.app.tests import ztapi
-
+from zope.interface.verify import verifyClass
+from zope.interface import implements, classImplements, implementedBy
 from zope.i18n.interfaces import IUserPreferredCharsets
-
+from zope.component.interfaces import IServiceService
 from zope.publisher.base import TestPublication
 from zope.publisher.http import IHTTPRequest, HTTPCharsets
-
+from zope.publisher.interfaces import IRequest
 from zope.security import simplepolicies
 from zope.security.management import setSecurityPolicy, getSecurityManager
 
+from zope.app import zapi
+from zope.app.tests.placelesssetup import PlacelessSetup
+from zope.app.tests import ztapi
+
+from zope.app.services.servicenames import Authentication
 from zope.app.security.registries.principalregistry import principalRegistry
 from zope.app.interfaces.security import IUnauthenticatedPrincipal
-
 from zope.app.publication.zopepublication import ZopePublication
-
-from zope.app.content.folder import Folder, rootFolder
-
-from zope.component.interfaces import IServiceService
-
+from zope.app.folder import Folder, rootFolder
 from zope.publisher.base import TestRequest
 from zope.publisher.browser import BrowserResponse
 
-from transaction import get_transaction
-from cStringIO import StringIO
-
-from zope.app.services.servicenames import Authentication
-
-from zope.publisher.interfaces import IRequest
-
 class BasePublicationTests(PlacelessSetup, unittest.TestCase):
 
     def setUp(self):
@@ -66,8 +59,7 @@
         app = getattr(root, ZopePublication.root_name, None)
 
         if app is None:
-            from zope.app.content.folder import rootFolder
-
+            from zope.app.folder import rootFolder
             app = rootFolder()
             root[ZopePublication.root_name] = app
 
@@ -298,7 +290,7 @@
         s.provideView(ISimpleReadContainer, '_traverse', IRequest,
                       ContainerTraverser)
 
-        from zope.app.interfaces.content.folder import IFolder
+        from zope.app.folder.interfaces import IFolder
         from zope.security.checker import defineChecker, InterfaceChecker
         defineChecker(Folder, InterfaceChecker(IFolder))
 




More information about the Zope3-Checkins mailing list