--- a/ztfy/utils/site.py Sun May 22 22:37:32 2011 +0200
+++ b/ztfy/utils/site.py Mon May 23 00:39:14 2011 +0200
@@ -24,7 +24,7 @@
from interfaces import INewSiteManagerEvent
# import Zope3 packages
-from zope.app import zapi
+from zope.component import getUtility
from zope.interface import implements
from zope.location import locate
@@ -43,6 +43,6 @@
def locateAndRegister(contained, parent, key, intids=None):
locate(contained, parent)
if intids is None:
- intids = zapi.getUtility(IIntIds)
+ intids = getUtility(IIntIds)
intids.register(contained)
parent[key] = contained