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
Carlos Ramos Carreño
slapos.core
Commits
6977663e
Commit
6977663e
authored
Nov 16, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use person workflow for request.
parent
24c29e1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/ERP5Site_requestComputerPartitionAsJSON.xml
...vifib_hosting/ERP5Site_requestComputerPartitionAsJSON.xml
+14
-12
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/ERP5Site_requestComputerPartitionAsJSON.xml
View file @
6977663e
...
...
@@ -52,23 +52,25 @@
<key>
<string>
_body
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
portal = context.getPortalObject()\n
\n
person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n
request_kw = {}\n
request_kw.update(\n
software_release=software_release_url,\n
software_title=title,\n
instance_xml=instance_xml\n
)\n
\n
if computer:\n
filter_xml
= """<?xml version=\'1.0\' encoding=\'utf-8\'?>
\n
request_kw[\'sla_xml\']
= """<?xml version=\'1.0\' encoding=\'utf-8\'?>
\n
<instance>
\n
<parameter
id=
"computer_guid"
>
%s
</parameter>
\n
</instance>
""" % computer\n
else:\n
filter_xml = None\n
\n
if not instance_xml:\n
instance_xml = None\n
return context.getPortalObject().portal_slap.requestComputerPartition(\n
software_release=software_release_url,\n
software_type=\'RootSoftwareInstance\',\n
partition_reference=title,\n
partition_parameter_xml=instance_xml,\n
filter_xml=filter_xml\n
)\n
person.requestSoftwareInstance(**request_kw)\n
\n
return True\n
]]>
</string>
</value>
...
...
master/bt5/vifib_web/bt/revision
View file @
6977663e
330
\ No newline at end of file
331
\ 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