Commit 50e4b8f0 authored by Romain Courteaud's avatar Romain Courteaud

erp5_core/forge: activate action for ERP5JS

* update template tool configuration
* create working copy
* create skin folder
* throw away local changes
parent 19dd7ce6
......@@ -16,13 +16,13 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>action_type/object_action</string>
<string>action_type/object_jio_action</string>
</tuple>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_action</string> </value>
<value> <string>object_jio_action</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
......
......@@ -16,13 +16,13 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>action_type/object_action</string>
<string>action_type/object_jio_action</string>
</tuple>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_action</string> </value>
<value> <string>object_jio_action</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
......
......@@ -16,13 +16,13 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>action_type/object_action</string>
<string>action_type/object_jio_action</string>
</tuple>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_action</string> </value>
<value> <string>object_jio_action</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
......
from Products.ERP5Type.Message import translateString
form_results = context.BusinessTemplate_viewCreateWorkingCopy.validate_all(REQUEST)
working_copy = form_results['your_repository']
working_copy = repository
context.getVcsTool(path=working_copy).createBusinessTemplateWorkingCopy()
return context.Base_redirect('BusinessTemplate_viewVcsStatus', keep_items=dict(
return context.Base_redirect('view', keep_items=dict(
portal_status_message=translateString('Business Template Working Copy created')
))
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>REQUEST</string> </value>
<value> <string>repository=None, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
context.getVcsTool().clean()
context.REQUEST.set('portal_status_message', 'Working copy cleaned successfully.')
return context.view()
return context.Base_redirect('view', keep_items={
'portal_status_message': 'Working copy cleaned successfully.'
})
......@@ -257,7 +257,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: context.getVcsTool().getWorkingCopyList()</string> </value>
<value> <string>python: [(x, x) for x in context.getVcsTool().getWorkingCopyList()]</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -16,13 +16,13 @@
<key> <string>categories</string> </key>
<value>
<tuple>
<string>action_type/object_exchange</string>
<string>action_type/object_jio_exchange</string>
</tuple>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_exchange</string> </value>
<value> <string>object_jio_exchange</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
......@@ -30,7 +30,9 @@
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>icon</string> </key>
......
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