Commit 5592d5b6 authored by Arnaud Fontaine's avatar Arnaud Fontaine

ZODB Components: Move allow_module() to the Component, makes more sense than keeping it on the FS.

parent 21becf4c
from AccessControl.SecurityInfo import allow_module
allow_module('erp5.component.tool.NotificationTool')
allow_module('erp5.component.tool.erp5_version.NotificationTool')
......@@ -45,6 +45,9 @@ from email import encoders
class ConversionError(Exception): pass
class MimeTypeException(Exception): pass
from AccessControl.SecurityInfo import allow_module
allow_module(__name__)
security = ModuleSecurityInfo(__name__)
security.declarePublic('buildEmailMessage',)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment