--- a/.installed.cfg Thu Feb 19 10:54:13 2015 +0100
+++ b/.installed.cfg Wed Jun 17 09:58:07 2015 +0200
@@ -1,16 +1,17 @@
[buildout]
-installed_develop_eggs = /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/develop-eggs/pyams-pagelet.egg-link
+installed_develop_eggs = /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/develop-eggs/pyams-template.egg-link
+ /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/develop-eggs/pyams-pagelet.egg-link
parts = package i18n pyflakes test
[package]
-__buildout_installed__ = /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin/pserve
- /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin/proutes
+__buildout_installed__ = /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin/ptweens
/home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin/pdistreport
/home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin/pshell
- /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin/pcreate
+ /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin/proutes
/home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin/pviews
/home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin/prequest
- /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin/ptweens
+ /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin/pserve
+ /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin/pcreate
__buildout_signature__ = zc.recipe.egg-2.0.1-py3.4.egg setuptools-12.0.4-py3.4.egg zc.buildout-2.3.1-py3.4.egg
_b = /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin
_d = /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/develop-eggs
@@ -18,9 +19,14 @@
bin-directory = /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin
develop-eggs-directory = /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/develop-eggs
eggs = pyams_pagelet
+ pyams_template
pyramid
+ pyramid_zcml
zope.component
+ zope.configuration
+ zope.contentprovider
zope.interface
+ zope.schema
eggs-directory = /var/local/env/pyams/eggs
recipe = zc.recipe.egg
@@ -58,7 +64,7 @@
[test]
__buildout_installed__ = /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/parts/test
/home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin/test
-__buildout_signature__ = zc.recipe.testrunner-2.0.0-py3.4.egg zc.recipe.egg-2.0.1-py3.4.egg setuptools-12.0.4-py3.4.egg zope.testrunner-4.4.6-py3.4.egg zc.buildout-2.3.1-py3.4.egg zope.interface-4.1.2-py3.4-linux-x86_64.egg zope.exceptions-4.0.7-py3.4.egg six-45a2be65d681713a598787ec39be3290
+__buildout_signature__ = zc.recipe.testrunner-2.0.0-py3.4.egg zc.recipe.egg-2.0.1-py3.4.egg setuptools-12.0.4-py3.4.egg zope.testrunner-4.4.6-py3.4.egg zc.buildout-2.3.1-py3.4.egg zope.interface-4.1.2-py3.4-linux-x86_64.egg zope.exceptions-4.0.7-py3.4.egg six-e6b62e54b4df360c40dfcbb76c1ecf1a
_b = /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin
_d = /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/develop-eggs
_e = /var/local/env/pyams/eggs
@@ -71,7 +77,8 @@
script = /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/bin/test
[buildout]
-installed_develop_eggs = /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/develop-eggs/pyams-pagelet.egg-link
+installed_develop_eggs = /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/develop-eggs/pyams-template.egg-link
+ /home/tflorac/Dropbox/src/PyAMS/pyams_pagelet/develop-eggs/pyams-pagelet.egg-link
[buildout]
parts = i18n pyflakes test package
--- a/buildout.cfg Thu Feb 19 10:54:13 2015 +0100
+++ b/buildout.cfg Wed Jun 17 09:58:07 2015 +0200
@@ -17,7 +17,9 @@
#allow-picked-versions = false
src = src
-develop = .
+develop =
+ .
+ ../pyams_template
parts =
package
--- a/src/pyams_pagelet/__init__.py Thu Feb 19 10:54:13 2015 +0100
+++ b/src/pyams_pagelet/__init__.py Wed Jun 17 09:58:07 2015 +0200
@@ -18,9 +18,6 @@
def includeme(config):
"""Pyramid include"""
- # add translations
- config.add_translation_dirs('pyams_pagelet:locales')
-
# load registry components
config.scan()
--- a/src/pyams_pagelet/pagelet.py Thu Feb 19 10:54:13 2015 +0100
+++ b/src/pyams_pagelet/pagelet.py Wed Jun 17 09:58:07 2015 +0200
@@ -14,6 +14,9 @@
# import standard packages
+import logging
+logger = logging.getLogger('PyAMS (pagelet)')
+
import venusian
# import interfaces
@@ -130,6 +133,9 @@
new_class = type(ob.__name__, (ob, Pagelet), cdict)
config = context.config.with_package(info.module)
+ logger.debug('Registering pagelet view "{0}" for {1} ({2})'.format(settings.get('name'),
+ str(settings.get('context', Interface)),
+ str(ob)))
config.registry.registerAdapter(new_class,
(settings.get('context', Interface),
settings.get('request_type', IRequest)),