[Zope-Checkins] SVN: Zope/branches/philikon-aq/lib/python/App/FactoryDispatcher.py Use the API luke!

Hanno Schlichting plone at hannosch.info
Sun Oct 14 06:19:30 EDT 2007


Log message for revision 80869:
  Use the API luke!
  

Changed:
  U   Zope/branches/philikon-aq/lib/python/App/FactoryDispatcher.py

-=-
Modified: Zope/branches/philikon-aq/lib/python/App/FactoryDispatcher.py
===================================================================
--- Zope/branches/philikon-aq/lib/python/App/FactoryDispatcher.py	2007-10-13 22:35:41 UTC (rev 80868)
+++ Zope/branches/philikon-aq/lib/python/App/FactoryDispatcher.py	2007-10-14 10:19:28 UTC (rev 80869)
@@ -66,7 +66,7 @@
     _owner=UnownableOwner
 
     def __init__(self, product, dest, REQUEST=None):
-        if hasattr(product,'aq_base'): product=product.aq_base
+        product = Acquisition.aq_base(product)
         self._product=product
         self._d=dest
         if REQUEST is not None:
@@ -100,7 +100,7 @@
             m=d[name]
             w=getattr(m, '_permissionMapper', None)
             if w is not None:
-                m=aqwrap(m, getattr(w,'aq_base',w), self)
+                m=aqwrap(m, Acquisition.aq_base(w), self)
 
             return m
 



More information about the Zope-Checkins mailing list