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
0
Merge Requests
0
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
Yusei Tahara
erp5
Commits
2476b3be
Commit
2476b3be
authored
Oct 07, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow import of all exceptions defined in zExceptions
parent
a1fa5881
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
product/ERP5/__init__.py
product/ERP5/__init__.py
+0
-2
product/ERP5Type/__init__.py
product/ERP5Type/__init__.py
+5
-0
No files found.
product/ERP5/__init__.py
View file @
2476b3be
...
@@ -102,8 +102,6 @@ def initialize( context ):
...
@@ -102,8 +102,6 @@ def initialize( context ):
# Allow some usefull classes and fonctions in TTW code
# Allow some usefull classes and fonctions in TTW code
ModuleSecurityInfo
(
'ZODB.POSException'
).
declarePublic
(
'ConflictError'
)
ModuleSecurityInfo
(
'ZODB.POSException'
).
declarePublic
(
'ConflictError'
)
ModuleSecurityInfo
(
'zExceptions'
).
declarePublic
(
'BadRequest'
,
'NotFound'
,
'Redirect'
,
'Unauthorized'
)
ModuleSecurityInfo
(
'Products.CMFCore.WorkflowCore'
).
declarePublic
(
ModuleSecurityInfo
(
'Products.CMFCore.WorkflowCore'
).
declarePublic
(
'WorkflowException'
)
'WorkflowException'
)
ModuleSecurityInfo
(
'Products.ERP5.Document.Image'
).
declarePublic
(
ModuleSecurityInfo
(
'Products.ERP5.Document.Image'
).
declarePublic
(
...
...
product/ERP5Type/__init__.py
View file @
2476b3be
...
@@ -190,3 +190,8 @@ ModuleSecurityInfo('Products.ERP5Type.Constraint').declarePublic('PropertyTypeVa
...
@@ -190,3 +190,8 @@ ModuleSecurityInfo('Products.ERP5Type.Constraint').declarePublic('PropertyTypeVa
ModuleSecurityInfo
(
'Products.ERP5Type.collections'
).
declarePublic
(
'OrderedDict'
)
ModuleSecurityInfo
(
'Products.ERP5Type.collections'
).
declarePublic
(
'OrderedDict'
)
ModuleSecurityInfo
(
'Products.ERP5Type.DiffUtils'
).
declarePublic
(
'DiffFile'
)
ModuleSecurityInfo
(
'Products.ERP5Type.DiffUtils'
).
declarePublic
(
'DiffFile'
)
ModuleSecurityInfo
(
'pprint'
).
declarePublic
(
'pformat'
,
'pprint'
)
ModuleSecurityInfo
(
'pprint'
).
declarePublic
(
'pformat'
,
'pprint'
)
import
zExceptions
ModuleSecurityInfo
(
'zExceptions'
).
declarePublic
(
*
filter
(
lambda
x
:
Exception
in
getattr
(
getattr
(
zExceptions
,
x
),
'__mro__'
,
()),
dir
(
zExceptions
)))
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