--- a/src/pyams_gis/site.py Thu Mar 08 09:04:31 2018 +0100
+++ b/src/pyams_gis/site.py Sat Mar 10 02:12:41 2018 +0100
@@ -18,29 +18,21 @@
# import interfaces
from pyams_gis.interfaces.utility import IMapManager
from pyams_utils.interfaces.site import ISiteGenerations
-from zope.site.interfaces import INewLocalSite
# import packages
from pyams_gis.utility import MapManager
from pyams_utils.registry import utility_config
from pyams_utils.site import check_required_utilities
-from pyramid.events import subscriber
REQUIRED_UTILITIES = ((IMapManager, '', MapManager, 'Maps manager'), )
-@subscriber(INewLocalSite)
-def handle_new_local_site(event):
- """Create a new map manager when a site is created"""
- site = event.manager.__parent__
- check_required_utilities(site, REQUIRED_UTILITIES)
-
-
@utility_config(name='PyAMS GIS', provides=ISiteGenerations)
class MapGenerationsChecker(object):
"""Maps generations checker"""
+ order = 90
generation = 1
def evolve(self, site, current=None):