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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Aaron Chen
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:
...
@@ -34,17 +34,18 @@ except ImportError:
LOG
(
'DeadlockDebugger'
,
ERROR
,
"Incorrectly installed threadframe module"
)
LOG
(
'DeadlockDebugger'
,
ERROR
,
"Incorrectly installed threadframe module"
)
else
:
else
:
config
=
getConfiguration
()
config
=
getConfiguration
()
deadlockdebugger
=
config
.
product_config
.
get
(
'deadlockdebugger'
)
if
getattr
(
config
,
'product_config'
,
None
)
is
not
None
:
dump_url
=
''
deadlockdebugger
=
config
.
product_config
.
get
(
'deadlockdebugger'
)
secret
=
''
dump_url
=
''
if
deadlockdebugger
is
None
:
secret
=
''
LOG
(
'DeadlockDebugger'
,
ERROR
,
'Missing configuration statement '
if
deadlockdebugger
is
None
:
'<product-config deadlockdebugger>, not activated'
)
LOG
(
'DeadlockDebugger'
,
ERROR
,
'Missing configuration statement '
else
:
'<product-config deadlockdebugger>, not activated'
)
if
not
'dump_url'
in
deadlockdebugger
:
LOG
(
'DeadlockDebugger'
,
ERROR
,
'Please configure dump_url and '
'optionally secret in <product-config deadlockdebugger>, not '
'activated'
)
else
:
else
:
import
dumper
if
not
'dump_url'
in
deadlockdebugger
:
LOG
(
'DeadlockDebugger'
,
INFO
,
"Installed"
)
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