Commit aabfb25a authored by Hanno Schlichting's avatar Hanno Schlichting

Use the API luke!

parent be2ea721
......@@ -66,7 +66,7 @@ class FactoryDispatcher(Acquisition.Implicit):
_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 @@ class FactoryDispatcher(Acquisition.Implicit):
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment