--- a/src/pyams_viewlet/manager.py Mon Jun 11 15:49:48 2018 +0200
+++ b/src/pyams_viewlet/manager.py Mon Jun 11 15:51:51 2018 +0200
@@ -9,12 +9,14 @@
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
-from pyams_utils.request import check_request
__docformat__ = 'restructuredtext'
# import standard packages
+import logging
+logger = logging.getLogger('PyAMS (viewlet)')
+
import venusian
# import interfaces
@@ -26,6 +28,7 @@
# import packages
from pyams_template.template import get_view_template
+from pyams_utils.request import check_request
from pyramid.exceptions import ConfigurationError
from pyramid.httpexceptions import HTTPUnauthorized
from pyramid.threadlocal import get_current_registry
@@ -264,6 +267,8 @@
provides = settings.get('provides', IViewletManager)
new_class = ViewletManagerFactory(settings.get('name'), provides, (class_,), cdict)
+ logger.debug("Registering viewlet manager {0} ({1})".format(settings.get('name'),
+ str(new_class)))
config = context.config.with_package(info.module)
config.registry.registerAdapter(new_class,
(settings.get('context', Interface),