--- 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'}})
--- 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 @@
-<configure
- xmlns="http://pylonshq.com/pyramid">
-
- <include package="pyramid_zcml" />
-
-</configure>
\ No newline at end of file
--- 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')
--- 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