diff -r b1ad46aa2d16 -r c3d0112a61f6 src/pyams_template/__init__.py --- a/src/pyams_template/__init__.py Mon Nov 25 15:46:23 2019 +0100 +++ b/src/pyams_template/__init__.py Tue Nov 26 10:01:36 2019 +0100 @@ -10,6 +10,14 @@ # FOR A PARTICULAR PURPOSE. # +"""PyAMS_template package + +This template is used to assign Chamelon templates to views or layouts. It's essentially an +adaptation of "z3c.template" package for use with Pyramid. + +Templates are registered as adapters for a context and a request, and so can easily be overriden. +You can also define view templates and layout templates, or use named adapters if needed. +""" from pyramid.i18n import TranslationStringFactory _ = TranslationStringFactory('pyams_template') @@ -19,8 +27,8 @@ """Pyramid include""" # define configuration settings - from pyams_template import template - template.configuration_settings = config.registry.settings + from pyams_template import template # pylint: disable=import-outside-toplevel + template.CONFIGURATION_SETTINGS = config.registry.settings # load registry components config.scan()