Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
d071a5e6
Commit
d071a5e6
authored
Dec 08, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_forge: create working copy from erp5js
parent
84a7c427
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
bt5/erp5_forge/ActionTemplateItem/portal_types/Business%20Template/create_working_copy.xml
.../portal_types/Business%20Template/create_working_copy.xml
+2
-2
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doCreateWorkingCopy.py
...al_skins/erp5_vcs/BusinessTemplate_doCreateWorkingCopy.py
+2
-3
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doCreateWorkingCopy.xml
...l_skins/erp5_vcs/BusinessTemplate_doCreateWorkingCopy.xml
+1
-1
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewCreateWorkingCopy/your_repository.xml
...usinessTemplate_viewCreateWorkingCopy/your_repository.xml
+1
-1
No files found.
bt5/erp5_forge/ActionTemplateItem/portal_types/Business%20Template/create_working_copy.xml
View file @
d071a5e6
...
...
@@ -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>
...
...
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doCreateWorkingCopy.py
View file @
d071a5e6
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'
)
))
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doCreateWorkingCopy.xml
View file @
d071a5e6
...
...
@@ -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>
...
...
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewCreateWorkingCopy/your_repository.xml
View file @
d071a5e6
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment