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
Frederic Thoma
erp5
Commits
8ac90175
Commit
8ac90175
authored
Mar 18, 2020
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: When migrating from FS, display full traceback when modules cannot be imported.
parent
140be41d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+6
-3
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
8ac90175
...
@@ -6607,7 +6607,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
...
@@ -6607,7 +6607,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
subsubmodule_name
)
subsubmodule_name
)
except
ImportError
,
e
:
except
ImportError
,
e
:
LOG
(
"BusinessTemplate"
,
WARNING
,
LOG
(
"BusinessTemplate"
,
WARNING
,
"Skipping %s: Cannot be imported (%s)"
%
(
filepath
,
e
))
"Skipping %s: Cannot be imported (%s)"
%
(
filepath
,
e
),
error
=
True
)
continue
continue
except
AttributeError
,
e
:
except
AttributeError
,
e
:
LOG
(
"BusinessTemplate"
,
WARNING
,
LOG
(
"BusinessTemplate"
,
WARNING
,
...
@@ -6634,7 +6635,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
...
@@ -6634,7 +6635,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
interface_module
=
__import__
(
source_reference
,
{},
{},
source_reference
)
interface_module
=
__import__
(
source_reference
,
{},
{},
source_reference
)
except
ImportError
,
e
:
except
ImportError
,
e
:
LOG
(
"BusinessTemplate"
,
WARNING
,
LOG
(
"BusinessTemplate"
,
WARNING
,
"Skipping %s: Cannot be imported (%s)"
%
(
filepath
,
e
))
"Skipping %s: Cannot be imported (%s)"
%
(
filepath
,
e
),
error
=
True
)
continue
continue
from
zope.interface.interface
import
InterfaceClass
from
zope.interface.interface
import
InterfaceClass
...
@@ -6662,7 +6664,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
...
@@ -6662,7 +6664,8 @@ Business Template is a set of definitions, such as skins, portal types and categ
mixin_module
=
__import__
(
source_reference
,
{},
{},
source_reference
)
mixin_module
=
__import__
(
source_reference
,
{},
{},
source_reference
)
except
ImportError
,
e
:
except
ImportError
,
e
:
LOG
(
"BusinessTemplate"
,
WARNING
,
LOG
(
"BusinessTemplate"
,
WARNING
,
"Skipping %s: Cannot be imported (%s)"
%
(
filepath
,
e
))
"Skipping %s: Cannot be imported (%s)"
%
(
filepath
,
e
),
error
=
True
)
continue
continue
mixin_class_name
=
None
mixin_class_name
=
None
...
...
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