Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
34ff8432
Commit
34ff8432
authored
Jul 13, 2012
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZODB Components: Do not store Persistent object in Component registry cache.
parent
ed8c36b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
product/ERP5Type/dynamic/component_package.py
product/ERP5Type/dynamic/component_package.py
+6
-4
No files found.
product/ERP5Type/dynamic/component_package.py
View file @
34ff8432
...
...
@@ -123,7 +123,7 @@ class ComponentDynamicPackage(ModuleType):
# beforehand
if
version
in
version_priority_set
:
reference
=
component
.
getReference
(
validated_only
=
True
)
self
.
__registry_dict
.
setdefault
(
reference
,
{})[
version
]
=
component
self
.
__registry_dict
.
setdefault
(
reference
,
{})[
version
]
=
component
.
getId
()
return
self
.
__registry_dict
...
...
@@ -241,7 +241,7 @@ class ComponentDynamicPackage(ModuleType):
(
fullname
,
self
.
_namespace
,
error
))
try
:
component
=
self
.
_registry_dict
[
name
][
version
]
component
_id
=
self
.
_registry_dict
[
name
][
version
]
except
KeyError
:
raise
ImportError
(
"%s: version %s of Component %s could not be found"
%
\
(
fullname
,
version
,
name
))
...
...
@@ -256,8 +256,8 @@ class ComponentDynamicPackage(ModuleType):
# Version priority name list is ordered in descending order
for
version
in
site
.
getVersionPriorityNameList
():
component
=
component_version_dict
.
get
(
version
)
if
component
is
not
None
:
component
_id
=
component_version_dict
.
get
(
version
)
if
component
_id
is
not
None
:
break
else
:
raise
ImportError
(
"%s: no version of Component %s in Site priority"
%
\
...
...
@@ -275,6 +275,8 @@ class ComponentDynamicPackage(ModuleType):
module_fullname_alias
=
self
.
_namespace
+
'.'
+
name
component
=
getattr
(
site
.
portal_components
,
component_id
)
module_fullname
=
'%s.%s_version.%s'
%
(
self
.
_namespace
,
version
,
name
)
module
=
ModuleType
(
module_fullname
,
component
.
getDescription
())
...
...
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