[Zope-Checkins] SVN: Zope/branches/2.12/src/Products/SiteAccess/__init__.py Allow tests to run in isolation.

Tres Seaver tseaver at palladion.com
Thu May 20 18:30:39 EDT 2010


Log message for revision 112588:
  Allow tests to run in isolation.
  
  E.g., 'bin/test --all -s Products.SiteAccess'.
  

Changed:
  U   Zope/branches/2.12/src/Products/SiteAccess/__init__.py

-=-
Modified: Zope/branches/2.12/src/Products/SiteAccess/__init__.py
===================================================================
--- Zope/branches/2.12/src/Products/SiteAccess/__init__.py	2010-05-20 20:54:57 UTC (rev 112587)
+++ Zope/branches/2.12/src/Products/SiteAccess/__init__.py	2010-05-20 22:30:39 UTC (rev 112588)
@@ -1,17 +1,22 @@
-__doc__="""SiteAccess product"""
+"""SiteAccess product
+"""
+def initialize(context):
+    import SiteRoot
+    import AccessRule
+    import VirtualHostMonster
 
-import SiteRoot, AccessRule, VirtualHostMonster
-
-def initialize(context):
     context.registerClass(instance_class=SiteRoot.SiteRoot,
       permission='Add Site Roots',
       constructors=SiteRoot.constructors, legacy=SiteRoot.constructors,
       icon='www/SiteRoot.gif')
+
     context.registerClass(instance_class=AccessRule.AccessRule,
       permission='Manage Access Rules', constructors=AccessRule.constructors,
       icon='www/AccessRule.gif')
+
     context.registerClass(instance_class=VirtualHostMonster.VirtualHostMonster,
       permission='Add Virtual Host Monsters',
       constructors=VirtualHostMonster.constructors,
       icon='www/VirtualHostMonster.gif')
+
     context.registerHelp()



More information about the Zope-Checkins mailing list