# HG changeset patch # User Thierry Florac # Date 1432118273 -7200 # Node ID 5dc0c1fa6af6b134b4af5649991516a4e4c2483a # Parent 5c1931a4217695bae8cd2c3783235a9cf31d0793 Removed unused ZCML file diff -r 5c1931a42176 -r 5dc0c1fa6af6 src/pyams_thesaurus/__init__.py --- a/src/pyams_thesaurus/__init__.py Fri Apr 17 14:54:09 2015 +0200 +++ b/src/pyams_thesaurus/__init__.py Wed May 20 12:37:53 2015 +0200 @@ -33,12 +33,12 @@ # register custom roles config.register_role({'id': 'thesaurus.Admin', - 'title': "Thesaurus administrator (role)", + 'title': _("Thesaurus administrator (role)"), 'permissions': {'thesaurus.admin', 'thesaurus.manage', 'thesaurus.extract.manage', 'view', 'system.view'}}) config.register_role({'id': 'thesaurus.Manager', - 'title': "Thesaurus content manager (role)", + 'title': _("Thesaurus content manager (role)"), 'permissions': {'thesaurus.manage', 'thesaurus.extract.manage', 'view', 'system.view'}}) config.register_role({'id': 'thesaurus.ExtractManager', - 'title': "Thesaurus extract manager (role)", + 'title': _("Thesaurus extract manager (role)"), 'permissions': {'thesaurus.extract.manage', 'view', 'system.view'}}) diff -r 5c1931a42176 -r 5dc0c1fa6af6 src/pyams_thesaurus/configure.zcml --- a/src/pyams_thesaurus/configure.zcml Fri Apr 17 14:54:09 2015 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff -r 5c1931a42176 -r 5dc0c1fa6af6 src/pyams_thesaurus/include.py --- a/src/pyams_thesaurus/include.py Fri Apr 17 14:54:09 2015 +0200 +++ b/src/pyams_thesaurus/include.py Wed May 20 12:37:53 2015 +0200 @@ -36,6 +36,3 @@ config.scan(ignore='pyams_thesaurus.zmi') else: config.scan() - - if hasattr(config, 'load_zcml'): - config.load_zcml('configure.zcml') diff -r 5c1931a42176 -r 5dc0c1fa6af6 src/pyams_thesaurus/thesaurus.py --- a/src/pyams_thesaurus/thesaurus.py Fri Apr 17 14:54:09 2015 +0200 +++ b/src/pyams_thesaurus/thesaurus.py Wed May 20 12:37:53 2015 +0200 @@ -56,7 +56,7 @@ from zope.container.btree import BTreeContainer from zope.container.contained import Contained from zope.interface import implementer, provider -from zope.lifecycleevent import ObjectCreatedEvent, ObjectModifiedEvent, ObjectAddedEvent +from zope.lifecycleevent import ObjectCreatedEvent from zope.location import locate from zope.schema.fieldproperty import FieldProperty from zope.schema.vocabulary import getVocabularyRegistry, SimpleVocabulary, SimpleTerm