Commit d4f6a2cb authored by Jérome Perrin's avatar Jérome Perrin

core/forge: fix scripts "Repository History" actions

The action was in erp5_core, but the form in erp5_forge. Move the action
in erp5_forge.

The listbox list method was raising error because it was using catalog
with unsupported installation_state=. Change to use contentValues
instead.

This listbox had "Listbox" as a title, use "History" instead, which
makes a little more sense in this context.
parent f98f1411
......@@ -9,8 +9,7 @@ folder_id = context.getParentValue().getId() # replace aq_parent by getParentVal
history_list = []
business_template = None
for bt in portal.portal_templates.searchFolder(installation_state='installed'):
# if installation_state not in catalog, we have to check manually
for bt in portal.portal_templates.contentValues():
if bt.getInstallationState() != 'installed':
continue
if folder_id in bt.getTemplateSkinIdList():
......
......@@ -116,7 +116,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Listbox</string> </value>
<value> <string>History</string> </value>
</item>
</dictionary>
</value>
......
......@@ -33,6 +33,8 @@ Glossary Module | update_workflows_by_english_glossary
Glossary Module | view
Glossary Term | view
Preference | vcs
PyData Script | repository_history_view
Python Script | repository_history_view
Template Tool | bt_vcs_history
Template Tool | migrate_business_template_list
Template Tool | search_portal_type
......
......@@ -112,12 +112,10 @@ Property Sheet | view
Property Type Validity Constraint | predicate
Property Type Validity Constraint | view
PyData Script | proxy_role_view
PyData Script | repository_history_view
PyData Script | run
PyData Script | view
Python Script | filter_view
Python Script | proxy_role_view
Python Script | repository_history_view
Python Script | run
Python Script | view
Ram Cache | statistics
......
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