Moved required utilities from pyams_base package
authorThierry Florac <thierry.florac@onf.fr>
Thu, 08 Oct 2015 09:48:45 +0200
changeset 14 959fc0b26546
parent 13 2b20d7a5e7ee
child 15 551c55958cf3
Moved required utilities from pyams_base package
src/pyams_catalog/site.py
--- a/src/pyams_catalog/site.py	Thu Oct 08 09:47:43 2015 +0200
+++ b/src/pyams_catalog/site.py	Thu Oct 08 09:48:45 2015 +0200
@@ -21,6 +21,7 @@
 from hypatia.interfaces import ICatalog
 from persistent.interfaces import IPersistent
 from pyams_utils.interfaces.site import ISiteGenerations
+from zope.intid.interfaces import IIntIds
 from zope.lifecycleevent.interfaces import IObjectAddedEvent, IObjectRemovedEvent, IObjectModifiedEvent
 from zope.site.interfaces import INewLocalSite
 
@@ -31,9 +32,11 @@
 from pyams_utils.site import check_required_utilities
 from pyramid.events import subscriber
 from zope.interface.interface import InterfaceClass
+from zope.intid import IntIds
 
 
-REQUIRED_UTILITIES = ((ICatalog, '', Catalog, 'Catalog'),)
+REQUIRED_UTILITIES = ((IIntIds, '', IntIds, 'Internal IDs'),
+                      (ICatalog, '', Catalog, 'Catalog'),)
 
 
 @subscriber(INewLocalSite)