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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xueyun Qian
erp5
Commits
294a858c
Commit
294a858c
authored
Mar 15, 2012
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Site Version Priority property is not set on a site prior ZODB Components.
parent
d3047f40
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
product/ERP5/ERP5Site.py
product/ERP5/ERP5Site.py
+8
-3
No files found.
product/ERP5/ERP5Site.py
View file @
294a858c
...
...
@@ -448,10 +448,10 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
def
getVersionPriorityList
(
self
):
"""
Return the Component version priorities defined on the site in descending
order. Whatever happens,
a
version must always be returned otherwise it
order. Whatever happens,
erp5
version must always be returned otherwise it
may render the site unusable when all Products will have been migrated
"""
return
self
.
_version_priority_list
or
(
'erp5 | 0.0'
,)
return
getattr
(
self
,
'_version_priority_list'
,
None
)
or
(
'erp5 | 0.0'
,)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'setVersionPriorityList'
)
...
...
@@ -1730,7 +1730,12 @@ class ERP5Generator(PortalGenerator):
# Return the fully wrapped object.
p
=
parent
.
this
().
_getOb
(
id
)
p
.
_setProperty
(
'version_priority_list'
,
(
'erp5 | 0.0'
,),
'lines'
)
# setProperty cannot be used for this property as it is a property object
# to _version_priority_list and valid_property_id doesn't accept property
# name starting with '_'. The property getter always returns at least erp5
# version so it only needs to be added to local properties
p
.
_local_properties
=
getattr
(
self
,
'_local_properties'
,
())
+
\
({
'id'
:
'version_priority_list'
,
'type'
:
'lines'
},)
erp5_sql_deferred_connection_string
=
erp5_sql_connection_string
p
.
_setProperty
(
'erp5_catalog_storage'
,
...
...
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