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
Thomas Gambier
erp5
Commits
7b21a960
Commit
7b21a960
authored
May 12, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Survive in case of no product_config support.
parent
a50f2860
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
product/DeadlockDebugger/__init__.py
product/DeadlockDebugger/__init__.py
+14
-13
No files found.
product/DeadlockDebugger/__init__.py
View file @
7b21a960
...
...
@@ -34,17 +34,18 @@ except ImportError:
LOG
(
'DeadlockDebugger'
,
ERROR
,
"Incorrectly installed threadframe module"
)
else
:
config
=
getConfiguration
()
deadlockdebugger
=
config
.
product_config
.
get
(
'deadlockdebugger'
)
dump_url
=
''
secret
=
''
if
deadlockdebugger
is
None
:
LOG
(
'DeadlockDebugger'
,
ERROR
,
'Missing configuration statement '
'<product-config deadlockdebugger>, not activated'
)
else
:
if
not
'dump_url'
in
deadlockdebugger
:
LOG
(
'DeadlockDebugger'
,
ERROR
,
'Please configure dump_url and '
'optionally secret in <product-config deadlockdebugger>, not '
'activated'
)
if
getattr
(
config
,
'product_config'
,
None
)
is
not
None
:
deadlockdebugger
=
config
.
product_config
.
get
(
'deadlockdebugger'
)
dump_url
=
''
secret
=
''
if
deadlockdebugger
is
None
:
LOG
(
'DeadlockDebugger'
,
ERROR
,
'Missing configuration statement '
'<product-config deadlockdebugger>, not activated'
)
else
:
import
dumper
LOG
(
'DeadlockDebugger'
,
INFO
,
"Installed"
)
if
not
'dump_url'
in
deadlockdebugger
:
LOG
(
'DeadlockDebugger'
,
ERROR
,
'Please configure dump_url and '
'optionally secret in <product-config deadlockdebugger>, not '
'activated'
)
else
:
import
dumper
LOG
(
'DeadlockDebugger'
,
INFO
,
"Installed"
)
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