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
Titouan Soulard
slapos.core
Commits
958760a6
Commit
958760a6
authored
Jul 27, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Packing lists related to Slave Instances do not change state of Computer Partition
parent
3d46cd87
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/slap_interaction_workflow/scripts/SalePackingList_markComputerPartitionBusy.xml
...low/scripts/SalePackingList_markComputerPartitionBusy.xml
+5
-3
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/slap_interaction_workflow/scripts/SalePackingList_markComputerPartitionFree.xml
...low/scripts/SalePackingList_markComputerPartitionFree.xml
+5
-3
master/bt5/vifib_slap/bt/revision
master/bt5/vifib_slap/bt/revision
+1
-1
No files found.
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/slap_interaction_workflow/scripts/SalePackingList_markComputerPartitionBusy.xml
View file @
958760a6
...
@@ -63,9 +63,11 @@ if sale_order is None:\n
...
@@ -63,9 +63,11 @@ if sale_order is None:\n
if computer_partition is None:\n
if computer_partition is None:\n
raise ValueError("Sale Packing List Line \'%s\' should have a computer partition aggregated" % sale_packing_list_line.getRelativeUrl())\n
raise ValueError("Sale Packing List Line \'%s\' should have a computer partition aggregated" % sale_packing_list_line.getRelativeUrl())\n
else:\n
else:\n
# Mark computer partition as busy\n
# Slave instance do not change state of computer partitions.\n
# This method should be always callable in this step to prevent having 2 packing list related to the same computer partition\n
if sale_packing_list_line.getAggregate(portal_type=["Slave Instance"]) is None:\n
computer_partition.markBusy()\n
# Mark computer partition as busy\n
# This method should be always callable in this step to prevent having 2 packing list related to the same computer partition\n
computer_partition.markBusy()\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/slap_interaction_workflow/scripts/SalePackingList_markComputerPartitionFree.xml
View file @
958760a6
...
@@ -67,9 +67,11 @@ computer_partition = current_delivery_line.getAggregateValue(portal_type=["Compu
...
@@ -67,9 +67,11 @@ computer_partition = current_delivery_line.getAggregateValue(portal_type=["Compu
if computer_partition is None:\n
if computer_partition is None:\n
raise ValueError("Sale Packing List Line \'%s\' should have a computer partition aggregated" % current_delivery_line.getRelativeUrl())\n
raise ValueError("Sale Packing List Line \'%s\' should have a computer partition aggregated" % current_delivery_line.getRelativeUrl())\n
else:\n
else:\n
# Mark computer partition as free\n
# Slave instance do not change state of computer partitions.\n
# This method should be always callable in this step to prevent having 2 packing list related to the same computer partition\n
if sale_packing_list_line.getAggregate(portal_type=["Slave Instance"]) is None:\n
computer_partition.markFree()\n
# Mark computer partition as free\n
# This method should be always callable in this step to prevent having 2 packing list related to the same computer partition\n
computer_partition.markFree()\n
\n
\n
# Deliver all SPL related to this software instance\n
# Deliver all SPL related to this software instance\n
software_instance = current_delivery_line.getAggregateValue(portal_type="Software Instance")\n
software_instance = current_delivery_line.getAggregateValue(portal_type="Software Instance")\n
...
...
master/bt5/vifib_slap/bt/revision
View file @
958760a6
403
404
\ 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