[Zope3-checkins] SVN: Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/metaconfigure.py Work around a weird import bug.

Philipp von Weitershausen philikon at philikon.de
Tue Feb 21 10:23:02 EST 2006


Log message for revision 41733:
  Work around a weird import bug.
  

Changed:
  U   Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/metaconfigure.py

-=-
Modified: Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/metaconfigure.py
===================================================================
--- Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/metaconfigure.py	2006-02-21 15:14:06 UTC (rev 41732)
+++ Zope3/branches/philikon-simplify-skinning/src/zope/app/publisher/browser/metaconfigure.py	2006-02-21 15:23:02 UTC (rev 41733)
@@ -23,9 +23,7 @@
 from zope.publisher.interfaces.browser import IBrowserRequest, IDefaultSkin
 from zope.publisher.interfaces.browser import IBrowserSkinType
 
-import zope.app.layers
-import zope.app.skins
-from zope.app import zapi
+from zope.app import zapi, layers, skins
 from zope.app.component.metaconfigure import handler
 
 # referred to through ZCML
@@ -170,7 +168,7 @@
         # Add the layer to the layers module.
         # Note: We have to do this immediately, so that directives using the
         # InterfaceField can find the layer.
-        zope.app.layers.set(name, interface)
+        layers.set(name, interface)
         path = 'zope.app.layers.'+name
     else:
         if not bbb_aware:
@@ -189,7 +187,7 @@
             # Make the interface available in the `zope.app.layers` module, so
             # that other directives can find the interface under the name
             # before the CA is setup.
-            zope.app.layers.set(name, interface)
+            layers.set(name, interface)
 
     # Register the layer interface as an interface
     _context.action(
@@ -302,7 +300,7 @@
         # Add the layer to the skins module.
         # Note: We have to do this immediately, so that directives using the
         # InterfaceField can find the layer.
-        zope.app.skins.set(name, interface)
+        skins.set(name, interface)
         path = 'zope.app.skins'+name
 
         # Register the layers



More information about the Zope3-Checkins mailing list