[Zope3-checkins] SVN: Zope3/trunk/ Fixed browser:defaultView metaconfigure:

Dominik Huber dominik.huber at projekt01.ch
Wed Nov 17 11:38:54 EST 2004


Log message for revision 28469:
  Fixed browser:defaultView metaconfigure:
  for_ passes a GlobalObject and not a Token of GlobalObjects.

Changed:
  U   Zope3/trunk/doc/CHANGES.txt
  U   Zope3/trunk/src/zope/app/component/metaconfigure.py

-=-
Modified: Zope3/trunk/doc/CHANGES.txt
===================================================================
--- Zope3/trunk/doc/CHANGES.txt	2004-11-16 22:41:12 UTC (rev 28468)
+++ Zope3/trunk/doc/CHANGES.txt	2004-11-17 16:38:54 UTC (rev 28469)
@@ -192,6 +192,9 @@
 
     Bug Fixes
 
+      - Fixed browser:defaultView metaconfigure: for_ passes a GlobalObject
+        and not a Token of GlobalObjects.
+
       - Changed negotiator import with "INegotiator" utility lookup in
         default global "TranslationDomain". This makes it possible to
         use local INegotiator utilities with the standard translation

Modified: Zope3/trunk/src/zope/app/component/metaconfigure.py
===================================================================
--- Zope3/trunk/src/zope/app/component/metaconfigure.py	2004-11-16 22:41:12 UTC (rev 28468)
+++ Zope3/trunk/src/zope/app/component/metaconfigure.py	2004-11-17 16:38:54 UTC (rev 28469)
@@ -378,13 +378,11 @@
         args = ('', type)
         )
 
-    for iface in for_:
-        if iface is not None:
-            _context.action(
-                discriminator = None,
-                callable = provideInterface,
-                args = ('', iface)
-                )
+    _context.action(
+        discriminator = None,
+        callable = provideInterface,
+        args = ('', for_)
+        )
 
 def serviceType(_context, id, interface):
     _context.action(



More information about the Zope3-Checkins mailing list