Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
erp5
Commits
5592d5b6
Commit
5592d5b6
authored
Jul 02, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: Move allow_module() to the Component, makes more sense than keeping it on the FS.
parent
21becf4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
product/ERP5/Tool/__init__.py
product/ERP5/Tool/__init__.py
+0
-3
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.NotificationTool.py
...plateItem/portal_components/tool.erp5.NotificationTool.py
+3
-0
No files found.
product/ERP5/Tool/__init__.py
View file @
5592d5b6
from
AccessControl.SecurityInfo
import
allow_module
allow_module
(
'erp5.component.tool.NotificationTool'
)
allow_module
(
'erp5.component.tool.erp5_version.NotificationTool'
)
product/ERP5/bootstrap/erp5_core/ToolComponentTemplateItem/portal_components/tool.erp5.NotificationTool.py
View file @
5592d5b6
...
...
@@ -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'
,)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment