Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
1c7d9e4b
Commit
1c7d9e4b
authored
12 years ago
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a re-entrant lock for loading Dynamic Module (meaningful for Components).
parent
97b7da32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
product/ERP5Type/dynamic/dynamic_module.py
product/ERP5Type/dynamic/dynamic_module.py
+1
-1
No files found.
product/ERP5Type/dynamic/dynamic_module.py
View file @
1c7d9e4b
...
...
@@ -12,7 +12,7 @@ class DynamicModule(ModuleType):
def
__init__
(
self
,
name
,
factory
,
doc
=
None
):
super
(
DynamicModule
,
self
).
__init__
(
name
,
doc
=
doc
)
self
.
_factory
=
factory
self
.
_lock
=
threading
.
Lock
()
self
.
_lock
=
threading
.
R
Lock
()
def
__getattr__
(
self
,
name
):
if
name
[:
2
]
==
'__'
:
...
...
This diff is collapsed.
Click to expand it.
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