Commit be6feba7 authored by Romain Courteaud's avatar Romain Courteaud

erp5_forge: create working copy from erp5js

parent eb981aa6
...@@ -16,13 +16,13 @@ ...@@ -16,13 +16,13 @@
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
<value> <value>
<tuple> <tuple>
<string>action_type/object_action</string> <string>action_type/object_jio_action</string>
</tuple> </tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>category</string> </key> <key> <string>category</string> </key>
<value> <string>object_action</string> </value> <value> <string>object_jio_action</string> </value>
</item> </item>
<item> <item>
<key> <string>condition</string> </key> <key> <string>condition</string> </key>
......
from Products.ERP5Type.Message import translateString from Products.ERP5Type.Message import translateString
form_results = context.BusinessTemplate_viewCreateWorkingCopy.validate_all(REQUEST) working_copy = repository
working_copy = form_results['your_repository']
context.getVcsTool(path=working_copy).createBusinessTemplateWorkingCopy() 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') portal_status_message=translateString('Business Template Working Copy created')
)) ))
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>REQUEST</string> </value> <value> <string>repository=None, **kw</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <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> </item>
</dictionary> </dictionary>
</pickle> </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