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
Xavier Thompson
slapos.core
Commits
daebc856
Commit
daebc856
authored
Nov 24, 2011
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove trailing spaces.
parent
fcc365c5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/person_slap_interface_workflow/scripts/Person_requestSoftwareInstance.xml
...rface_workflow/scripts/Person_requestSoftwareInstance.xml
+6
-6
master/bt5/vifib_slap/bt/revision
master/bt5/vifib_slap/bt/revision
+1
-1
No files found.
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/person_slap_interface_workflow/scripts/Person_requestSoftwareInstance.xml
View file @
daebc856
...
@@ -74,7 +74,7 @@ if is_slave == True:\n
...
@@ -74,7 +74,7 @@ if is_slave == True:\n
else:\n
else:\n
software_instance_portal_type = "Software Instance"\n
software_instance_portal_type = "Software Instance"\n
\n
\n
tag = "%s_%s_inProgress" % (person.getUid(),
\n
tag = "%s_%s_inProgress" % (person.getUid(),\n
software_title)\n
software_title)\n
\n
\n
# Check if it already exists\n
# Check if it already exists\n
...
@@ -104,7 +104,7 @@ if (request_software_instance is None):\n
...
@@ -104,7 +104,7 @@ if (request_software_instance is None):\n
else:\n
else:\n
\n
\n
setup_service_relative_url = portal.portal_preferences.getPreferredInstanceSetupResource()\n
setup_service_relative_url = portal.portal_preferences.getPreferredInstanceSetupResource()\n
\n
\n
software_instance = portal.getDefaultModule(portal_type=software_instance_portal_type).newContent(\n
software_instance = portal.getDefaultModule(portal_type=software_instance_portal_type).newContent(\n
portal_type=software_instance_portal_type,\n
portal_type=software_instance_portal_type,\n
source_reference=software_type,\n
source_reference=software_type,\n
...
@@ -124,7 +124,7 @@ if (request_software_instance is None):\n
...
@@ -124,7 +124,7 @@ if (request_software_instance is None):\n
if state == \'started\':\n
if state == \'started\':\n
software_instance.startRequested()\n
software_instance.startRequested()\n
elif state == \'stopped\':\n
elif state == \'stopped\':\n
software_instance.stopRequested()
\n
software_instance.stopRequested()\n
\n
\n
software_release_document = context.portal_catalog.getResultValue(\n
software_release_document = context.portal_catalog.getResultValue(\n
portal_type=\'Software Release\',\n
portal_type=\'Software Release\',\n
...
@@ -156,18 +156,18 @@ if (request_software_instance is None):\n
...
@@ -156,18 +156,18 @@ if (request_software_instance is None):\n
# does this order have a client-specific Open Order\n
# does this order have a client-specific Open Order\n
open_order = portal.portal_catalog.getResultValue(\n
open_order = portal.portal_catalog.getResultValue(\n
default_destination_section_uid=person.getUid(),\n
default_destination_section_uid=person.getUid(),\n
portal_type="Open Sale Order",\
t \t \
n
portal_type="Open Sale Order",\n
validation_state="validated")\n
validation_state="validated")\n
if open_order is None:\n
if open_order is None:\n
person_slap_interface_state = person.getSlapState()\n
person_slap_interface_state = person.getSlapState()\n
if person_slap_interface_state == \'open_order_created\':\n
if person_slap_interface_state == \'open_order_created\':\n
open_order_url = context.portal_workflow.getInfoFor(\n
open_order_url = context.portal_workflow.getInfoFor(\n
ob=person, name=\'open_order_url\',
\n
ob=person, name=\'open_order_url\',\n
wf_id=\'person_slap_interface_workflow\')\n
wf_id=\'person_slap_interface_workflow\')\n
open_order = portal.restrictedTraverse(open_order_url)\n
open_order = portal.restrictedTraverse(open_order_url)\n
else:\n
else:\n
raise ValueError(\'Person has no open order created\')\n
raise ValueError(\'Person has no open order created\')\n
\n
\n
open_order.newContent(\n
open_order.newContent(\n
portal_type="Open Sale Order Line",\n
portal_type="Open Sale Order Line",\n
title=software_title,\n
title=software_title,\n
...
...
master/bt5/vifib_slap/bt/revision
View file @
daebc856
446
447
\ 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