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
Guillaume Hervier
slapos.core
Commits
0c4a37ae
Commit
0c4a37ae
authored
Sep 26, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
React on Software Installation changes instead of PPLs.
parent
36d5e5c7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
21 deletions
+21
-21
master/bt5/vifib_slap/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
...rtalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
+4
-0
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/slap_interaction_workflow/interactions/SoftwareInstallation_start_destroy.xml
...kflow/interactions/SoftwareInstallation_start_destroy.xml
+5
-5
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/slap_interaction_workflow/scripts/SoftwareInstallation_reindexAggregatedComputer.xml
...cripts/SoftwareInstallation_reindexAggregatedComputer.xml
+10
-15
master/bt5/vifib_slap/bt/revision
master/bt5/vifib_slap/bt/revision
+1
-1
master/bt5/vifib_slap/bt/template_portal_type_workflow_chain_list
...t5/vifib_slap/bt/template_portal_type_workflow_chain_list
+1
-0
No files found.
master/bt5/vifib_slap/PortalTypeWorkflowChainTemplateItem/workflow_chain_type.xml
View file @
0c4a37ae
...
@@ -51,6 +51,10 @@
...
@@ -51,6 +51,10 @@
<type>
Slave Instance
</type>
<type>
Slave Instance
</type>
<workflow>
slap_interaction_workflow
</workflow>
<workflow>
slap_interaction_workflow
</workflow>
</chain>
</chain>
<chain>
<type>
Software Installation
</type>
<workflow>
slap_interaction_workflow
</workflow>
</chain>
<chain>
<chain>
<type>
Software Instance
</type>
<type>
Software Instance
</type>
<workflow>
slap_interaction_workflow
</workflow>
<workflow>
slap_interaction_workflow
</workflow>
...
...
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/slap_interaction_workflow/interactions/
PurchasePackingList_stop_deliver
.xml
→
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/slap_interaction_workflow/interactions/
SoftwareInstallation_start_destroy
.xml
View file @
0c4a37ae
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<key>
<string>
after_script_name
</string>
</key>
<key>
<string>
after_script_name
</string>
</key>
<value>
<value>
<list>
<list>
<string>
PurchasePackingList
_reindexAggregatedComputer
</string>
<string>
SoftwareInstallation
_reindexAggregatedComputer
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
@@ -50,14 +50,14 @@
...
@@ -50,14 +50,14 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
PurchasePackingList_stop_deliver
</string>
</value>
<value>
<string>
SoftwareInstallation_start_destroy
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
method_id
</string>
</key>
<key>
<string>
method_id
</string>
</key>
<value>
<value>
<list>
<list>
<string>
stop
</string>
<string>
requestStart
</string>
<string>
deliver
</string>
<string>
requestDestroy
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
<key>
<string>
portal_type_filter
</string>
</key>
<key>
<string>
portal_type_filter
</string>
</key>
<value>
<value>
<list>
<list>
<string>
Purchase Packing List
</string>
<string>
Software Installation
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
...
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/slap_interaction_workflow/scripts/
PurchasePackingList
_reindexAggregatedComputer.xml
→
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/slap_interaction_workflow/scripts/
SoftwareInstallation
_reindexAggregatedComputer.xml
View file @
0c4a37ae
...
@@ -50,21 +50,16 @@
...
@@ -50,21 +50,16 @@
</item>
</item>
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
s
ale_packing_list
= state_change[\'object\']\n
<value>
<string>
s
oftware_installation
= state_change[\'object\']\n
\n
\n
setup_service_relative_url = sale_packing_list.portal_preferences.getPreferredSoftwareSetupResource()\n
computer = software_installation.getAggregateValue(portal_type="Computer")\n
\n
if computer is None:\n
for purchase_packing_list_line in sale_packing_list.contentValues(\n
raise ValueError("Software Installation \'%s\' should have a computer aggregated" % software_installation.getRelativeUrl())\n
portal_type="Purchase Packing List Line"):\n
else:\n
if purchase_packing_list_line.getResource() == setup_service_relative_url:\n
tag = "%s_reindex" % software_installation.getRelativeUrl()\n
computer = purchase_packing_list_line.getAggregateValue(portal_type="Computer")\n
# As software is installed, reindex the computer to mark the computer partition as installable\n
if computer is None:\n
software_installation.reindexObject(activate_kw={\'tag\': tag})\n
raise ValueError("Purchase Packing List Line \'%s\' should have a computer aggregated" % purchase_packing_list_line.getRelativeUrl())\n
computer.activate(after_tag=tag).recursiveReindexObject()\n
else:\n
tag = "%s_reindex" % purchase_packing_list_line.getRelativeUrl()\n
# As software is installed, reindex the computer to mark the computer partition as installable\n
purchase_packing_list_line.reindexObject(activate_kw={\'tag\': tag})\n
computer.activate(after_tag=tag).recursiveReindexObject()\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
@@ -73,7 +68,7 @@ for purchase_packing_list_line in sale_packing_list.contentValues(\n
...
@@ -73,7 +68,7 @@ for purchase_packing_list_line in sale_packing_list.contentValues(\n
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
PurchasePackingList
_reindexAggregatedComputer
</string>
</value>
<value>
<string>
SoftwareInstallation
_reindexAggregatedComputer
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
master/bt5/vifib_slap/bt/revision
View file @
0c4a37ae
809
810
\ No newline at end of file
\ No newline at end of file
master/bt5/vifib_slap/bt/template_portal_type_workflow_chain_list
View file @
0c4a37ae
...
@@ -14,6 +14,7 @@ Sale Invoice Transaction | slap_interaction_workflow
...
@@ -14,6 +14,7 @@ Sale Invoice Transaction | slap_interaction_workflow
Sale Packing List Line | slap_interaction_workflow
Sale Packing List Line | slap_interaction_workflow
Sale Packing List | slap_interaction_workflow
Sale Packing List | slap_interaction_workflow
Slave Instance | slap_interaction_workflow
Slave Instance | slap_interaction_workflow
Software Installation | slap_interaction_workflow
Software Instance | slap_interaction_workflow
Software Instance | slap_interaction_workflow
Software Release | slap_interaction_workflow
Software Release | slap_interaction_workflow
Virtio Partition | computer_partition_slap_interface_workflow
Virtio Partition | computer_partition_slap_interface_workflow
...
...
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