Commit 476ce70e authored by Arnaud Fontaine's avatar Arnaud Fontaine

Show Component versions defined on the BusinessTemplate in ZODB Migration view.

Also, declare ERP5Site.getVersionPriorityNameList() as protected rather than
private for views.
parent 81658fb8
......@@ -471,7 +471,8 @@ class ERP5Site(FolderMixIn, CMFSite, CacheCookieMixin):
version_priority_list = property(getVersionPriorityList,
setVersionPriorityList)
security.declarePrivate('getVersionPriorityNameList')
security.declareProtected(Permissions.AccessContentsInformation,
'getVersionPriorityNameList')
def getVersionPriorityNameList(self):
# XXX-arnau: should be cached?
return [name.split('|')[0].strip()
......
......@@ -123,7 +123,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [(v, v) for v in here.getPortalObject().getVersionPriorityNameList()]</string> </value>
<value> <string>python: [(v, v) for v in set(here.getPortalObject().getVersionPriorityNameList() + [v.split(\'|\')[0].strip() for v in here.getTemplateRegisteredVersionPrioritySelectionList()])]</string> </value>
</item>
</dictionary>
</pickle>
......
2012-03-06 arnaud.fontaine
* Show Component versions defined on the BusinessTemplate in ZODB Migration view.
2012-03-06 arnaud.fontaine
* Add registered version priority selection on BusinessTemplate_view for registering version priority of ZODB Components only for now.
......
41027
\ No newline at end of file
41028
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment