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
4a81d130
Commit
4a81d130
authored
Dec 10, 2020
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_forge: handle SVN exception
parent
06de043b
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
608 additions
and
9 deletions
+608
-9
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doVcsCommit.py
...tem/portal_skins/erp5_vcs/BusinessTemplate_doVcsCommit.py
+1
-1
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doVcsUpdate.py
...tem/portal_skins/erp5_vcs/BusinessTemplate_doVcsUpdate.py
+11
-3
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doVcsUpdate.xml
...em/portal_skins/erp5_vcs/BusinessTemplate_doVcsUpdate.xml
+1
-1
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_handleException.py
...portal_skins/erp5_vcs/BusinessTemplate_handleException.py
+1
-2
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_handleException.xml
...ortal_skins/erp5_vcs/BusinessTemplate_handleException.xml
+1
-1
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewGitLogin/remote_url.xml
...ins/erp5_vcs/BusinessTemplate_viewGitLogin/remote_url.xml
+1
-1
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewSvnLogin.xml
...m/portal_skins/erp5_vcs/BusinessTemplate_viewSvnLogin.xml
+16
-0
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewSvnLogin/your_commit_json.xml
...p5_vcs/BusinessTemplate_viewSvnLogin/your_commit_json.xml
+280
-0
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewSvnSSLTrust.xml
...ortal_skins/erp5_vcs/BusinessTemplate_viewSvnSSLTrust.xml
+16
-0
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewSvnSSLTrust/your_commit_json.xml
...vcs/BusinessTemplate_viewSvnSSLTrust/your_commit_json.xml
+280
-0
No files found.
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doVcsCommit.py
View file @
4a81d130
...
@@ -56,4 +56,4 @@ try:
...
@@ -56,4 +56,4 @@ try:
removed
=
commit_dict
[
'removed'
]
removed
=
commit_dict
[
'removed'
]
)
)
except
Exception
,
error
:
except
Exception
,
error
:
return
context
.
BusinessTemplate_handleException
(
error
,
script
.
id
,
commit_dict
=
commit_dict
)
return
context
.
BusinessTemplate_handleException
(
error
,
script
.
id
,
commit_dict
)
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doVcsUpdate.py
View file @
4a81d130
import
json
commit_dict
=
json
.
loads
(
commit_json
)
if
commit_json
is
not
None
else
{
'keep'
:
keep
}
if
keep
:
commit_dict
[
'keep'
]
=
keep
try
:
try
:
new_bt
=
context
.
getVcsTool
().
update
(
keep
)
new_bt
=
context
.
getVcsTool
().
update
(
commit_dict
[
'keep'
]
)
except
Exception
,
error
:
except
Exception
,
error
:
return
context
.
BusinessTemplate_handleException
(
return
context
.
BusinessTemplate_handleException
(
error
,
script
.
id
,
form_id
=
form_id
,
keep
=
keep
)
error
,
script
.
id
,
commit_dict
)
return
new_bt
.
Base_redirect
(
'BusinessTemplate_viewInstallationDialog'
,
keep_items
=
{
return
new_bt
.
Base_redirect
(
'BusinessTemplate_viewInstallationDialog'
,
keep_items
=
{
'portal_status_message'
:
'Working copy updated successfully.'
,
'portal_status_message'
:
'Working copy updated successfully.'
,
'workflow_action'
:
'install_action'
,
'workflow_action'
:
'install_action'
,
'form_id'
:
form_id
'form_id'
:
'view'
})
})
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_doVcsUpdate.xml
View file @
4a81d130
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
form_id=\'view\'
, keep=False
</string>
</value>
<value>
<string>
commit_json=None
, keep=False
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_handleException.py
View file @
4a81d130
...
@@ -18,11 +18,10 @@ except GitLoginError, e:
...
@@ -18,11 +18,10 @@ except GitLoginError, e:
method
=
'BusinessTemplate_viewGitLogin'
method
=
'BusinessTemplate_viewGitLogin'
commit_dict
[
'caller'
]
=
caller
commit_dict
[
'caller'
]
=
caller
# XXX caller_kw
# Always propage all informations throught formulator hidden field
# Always propage all informations throught formulator hidden field
request
=
context
.
REQUEST
request
=
context
.
REQUEST
request
.
form
[
'your_commit_json'
]
=
json
.
dumps
(
commit_dict
)
request
.
form
[
'your_commit_json'
]
=
json
.
dumps
(
commit_dict
)
return
context
.
Base_renderForm
(
method
,
keep_items
=
{
return
context
.
asContext
(
**
kw
).
Base_renderForm
(
method
,
keep_items
=
{
'portal_status_message'
:
message
'portal_status_message'
:
message
})
})
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_handleException.xml
View file @
4a81d130
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
exception, caller, commit_dict
, **caller_kw
</string>
</value>
<value>
<string>
exception, caller, commit_dict
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewGitLogin/remote_url.xml
View file @
4a81d130
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
_text
</string>
</key>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: context.getVcsTool().getRemoteUrl()
</string>
</value>
<value>
<string>
here/remote_url
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewSvnLogin.xml
View file @
4a81d130
...
@@ -65,6 +65,8 @@
...
@@ -65,6 +65,8 @@
<list>
<list>
<string>
left
</string>
<string>
left
</string>
<string>
right
</string>
<string>
right
</string>
<string>
center
</string>
<string>
bottom
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
@@ -72,6 +74,20 @@
...
@@ -72,6 +74,20 @@
<key>
<string>
groups
</string>
</key>
<key>
<string>
groups
</string>
</key>
<value>
<value>
<dictionary>
<dictionary>
<item>
<key>
<string>
bottom
</string>
</key>
<value>
<list>
<string>
your_commit_json
</string>
</list>
</value>
</item>
<item>
<key>
<string>
center
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<item>
<key>
<string>
left
</string>
</key>
<key>
<string>
left
</string>
</key>
<value>
<value>
...
...
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewSvnLogin/your_commit_json.xml
0 → 100644
View file @
4a81d130
This diff is collapsed.
Click to expand it.
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewSvnSSLTrust.xml
View file @
4a81d130
...
@@ -65,6 +65,8 @@
...
@@ -65,6 +65,8 @@
<list>
<list>
<string>
left
</string>
<string>
left
</string>
<string>
right
</string>
<string>
right
</string>
<string>
center
</string>
<string>
bottom
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
@@ -72,6 +74,20 @@
...
@@ -72,6 +74,20 @@
<key>
<string>
groups
</string>
</key>
<key>
<string>
groups
</string>
</key>
<value>
<value>
<dictionary>
<dictionary>
<item>
<key>
<string>
bottom
</string>
</key>
<value>
<list>
<string>
your_commit_json
</string>
</list>
</value>
</item>
<item>
<key>
<string>
center
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<item>
<key>
<string>
left
</string>
</key>
<key>
<string>
left
</string>
</key>
<value>
<value>
...
...
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewSvnSSLTrust/your_commit_json.xml
0 → 100644
View file @
4a81d130
This diff is collapsed.
Click to expand it.
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