[Zope3-checkins] CVS: Zope3/src/zope/app/services - pagefolder.py:1.13

Sidnei da Silva sidnei@x3ng.com.br
Mon, 7 Jul 2003 13:15:08 -0400


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv17331/src/zope/app/services

Modified Files:
	pagefolder.py 
Log Message:
Adding GlobalConnectionService, with tests (few, but theres not much to test anyway)

=== Zope3/src/zope/app/services/pagefolder.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/services/pagefolder.py:1.12	Wed Jul  2 18:11:13 2003
+++ Zope3/src/zope/app/services/pagefolder.py	Mon Jul  7 13:15:03 2003
@@ -26,7 +26,6 @@
 from zope.publisher.interfaces.browser import IBrowserPresentation
 from zope.app.traversing import getPath
 from zope.app.context import getItem
-from zope.context import ContextMethod
 from zope.app.interfaces.services.registration import ActiveStatus
 from zope.app.services.registration import RegistrationManagerContainer
 from zope.proxy import removeAllProxies
@@ -128,18 +127,18 @@
                 template=template,
                 layer=self.layer,
                 )
-            
+
             registrations = self.getRegistrationManager()
             id = registrations.setObject('', registration)
             registration = getItem(registrations, id)
             registration.status = ActiveStatus
-            
+
         return name
 
     def applyDefaults(self):
-        """Apply the default configuration to the already-registered pages. 
+        """Apply the default configuration to the already-registered pages.
         """
-        
+
         rm = self.getRegistrationManager()
         for name in rm:
             registration = rm[name]
@@ -160,10 +159,6 @@
             # Now restore the registration status
 
             registration.status = status
-
-
-
-
 
 
 # XXX Backward compatibility. This is needed to support old pickles.