Commit 2bea52f4 authored by Romain Courteaud's avatar Romain Courteaud

erp5_forge: create working copy from erp5js

parent 45b4012d
......@@ -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>
......
......@@ -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>
......
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