Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
slapos.core
Commits
eea3464d
Commit
eea3464d
authored
Sep 18, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use an unique request dialog.
parent
1dc12713
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareRelease_requestFromDialog.xml
...skins/vifib_hosting/SoftwareRelease_requestFromDialog.xml
+14
-1
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_addSelectedSoftwareReleaseToShoppingCart.xml
...g/WebSection_addSelectedSoftwareReleaseToShoppingCart.xml
+4
-2
master/bt5/vifib_web/bt/revision
master/bt5/vifib_web/bt/revision
+1
-1
No files found.
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareRelease_requestFromDialog.xml
View file @
eea3464d
...
@@ -55,6 +55,19 @@
...
@@ -55,6 +55,19 @@
if not service_title:\n
if not service_title:\n
service_title = "Vifib KVM %i" % portal.portal_ids.generateNewId(id_group=("vifib", "kvm"), default=1),\n
service_title = "Vifib KVM %i" % portal.portal_ids.generateNewId(id_group=("vifib", "kvm"), default=1),\n
\n
\n
hosting_subscription = portal.portal_catalog.getResultValue(\n
portal_type=\'Hosting Subscription\',\n
validation_state="validated",\n
select_expression=\'title\',\n
title={\'query\': service_title, \'key\': \'ExactMatch\'}\n
)\n
\n
if hosting_subscription is not None:\n
return context.Base_redirect(dialog_id,\n
keep_items={\'portal_status_message\':context.Base_translateString(\n
"You already have service named ${service_title}. Please choose different unique name.", mapping={\'service_title\': service_title})})\n
\n
\n
url = context.getUrlString()\n
url = context.getUrlString()\n
\n
\n
person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n
person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n
...
@@ -78,7 +91,7 @@ return context.REQUEST.get(\'request_hosting_subscription\').Base_redirect(keep_
...
@@ -78,7 +91,7 @@ return context.REQUEST.get(\'request_hosting_subscription\').Base_redirect(keep_
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
service_title=None, instance_xml=None
</string>
</value>
<value>
<string>
dialog_id,
service_title=None, instance_xml=None
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/WebSection_addSelectedSoftwareReleaseToShoppingCart.xml
View file @
eea3464d
...
@@ -65,8 +65,10 @@ else:\n
...
@@ -65,8 +65,10 @@ else:\n
if kw.has_key(\'came_from\'):\n
if kw.has_key(\'came_from\'):\n
#we override the context to redirect the user to the next web section\n
#we override the context to redirect the user to the next web section\n
context = portal.restrictedTraverse(kw[\'came_from\'])\n
context = portal.restrictedTraverse(kw[\'came_from\'])\n
\n
\n
context.WebSection_viewNextStep()\n
software_release = portal.portal_catalog.getResultValue(uid=uids[0])\n
return software_release.Base_redirect(\'SoftwareRelease_viewRequestDialog\')\n
# context.WebSection_viewNextStep()\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
master/bt5/vifib_web/bt/revision
View file @
eea3464d
454
455
\ No newline at end of file
\ No newline at end of file
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