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
Lu Xu
slapos.core
Commits
9b95283d
Commit
9b95283d
authored
May 10, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate rename transition.
parent
9fec4a36
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
30 additions
and
16 deletions
+30
-16
master/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/states/destroy_requested.xml
...ance_slap_interface_workflow/states/destroy_requested.xml
+0
-2
master/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/states/start_requested.xml
...stance_slap_interface_workflow/states/start_requested.xml
+0
-2
master/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/states/stop_requested.xml
...nstance_slap_interface_workflow/states/stop_requested.xml
+0
-2
master/bt5/vifib_base/bt/revision
master/bt5/vifib_base/bt/revision
+1
-1
master/bt5/vifib_slapos_core/WorkflowTemplateItem/portal_workflow/instance_slap_interface_workflow/scripts/RequestedInstance_rename.xml
...p_interface_workflow/scripts/RequestedInstance_rename.xml
+23
-6
master/bt5/vifib_slapos_core/WorkflowTemplateItem/portal_workflow/instance_slap_interface_workflow/states/draft.xml
...orkflow/instance_slap_interface_workflow/states/draft.xml
+1
-0
master/bt5/vifib_slapos_core/WorkflowTemplateItem/portal_workflow/instance_slap_interface_workflow/states/start_requested.xml
...stance_slap_interface_workflow/states/start_requested.xml
+1
-0
master/bt5/vifib_slapos_core/WorkflowTemplateItem/portal_workflow/instance_slap_interface_workflow/states/stop_requested.xml
...nstance_slap_interface_workflow/states/stop_requested.xml
+1
-0
master/bt5/vifib_slapos_core/WorkflowTemplateItem/portal_workflow/instance_slap_interface_workflow/transitions/rename.xml
...w/instance_slap_interface_workflow/transitions/rename.xml
+2
-2
master/bt5/vifib_slapos_core/bt/revision
master/bt5/vifib_slapos_core/bt/revision
+1
-1
No files found.
master/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/states/destroy_requested.xml
View file @
9b95283d
...
...
@@ -24,8 +24,6 @@
<tuple>
<string>
destroy_computer_partition
</string>
<string>
destroy_requested
</string>
<string>
lock
</string>
<string>
rename
</string>
<string>
report_computer_partition_bang
</string>
<string>
report_computer_partition_error
</string>
<string>
request_destroy_computer_partition
</string>
...
...
master/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/states/start_requested.xml
View file @
9b95283d
...
...
@@ -24,8 +24,6 @@
<tuple>
<string>
destroy_computer_partition
</string>
<string>
destroy_requested
</string>
<string>
lock
</string>
<string>
rename
</string>
<string>
report_computer_partition_bang
</string>
<string>
report_computer_partition_error
</string>
<string>
request_destroy_computer_partition
</string>
...
...
master/bt5/vifib_base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/states/stop_requested.xml
View file @
9b95283d
...
...
@@ -24,8 +24,6 @@
<tuple>
<string>
destroy_computer_partition
</string>
<string>
destroy_requested
</string>
<string>
lock
</string>
<string>
rename
</string>
<string>
report_computer_partition_bang
</string>
<string>
report_computer_partition_error
</string>
<string>
request_destroy_computer_partition
</string>
...
...
master/bt5/vifib_base/bt/revision
View file @
9b95283d
437
\ No newline at end of file
438
\ No newline at end of file
master/bt5/vifib_
base/WorkflowTemplateItem/portal_workflow/software_instance_slap_interface_workflow/scripts/Software
Instance_rename.xml
→
master/bt5/vifib_
slapos_core/WorkflowTemplateItem/portal_workflow/instance_slap_interface_workflow/scripts/Requested
Instance_rename.xml
View file @
9b95283d
...
...
@@ -50,12 +50,29 @@
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
# Get the software_instance\n
software_instance = state_change[\'object\']\n
<value>
<string
encoding=
"cdata"
>
<![CDATA[
instance = state_change[\'object\']\n
portal = instance.getPortalObject()\n
software_title = state_change.kwargs[\'new_name\']\n
\n
assert instance.getPortalType() in ["Slave Instance", "Software Instance"]\n
\n
hosting_subscription = instance.getSpecialiseValue(portal_type="Hosting Subscription")\n
\n
# Instance can be moved from one requester to another\n
# Prevent creating two instances with the same title\n
tag = "%s_%s_inProgress" % (hosting_subscription.getUid(), software_title)\n
if (portal.portal_activities.countMessageWithTag(tag) >
0):\n
# The software instance is already under creation but can not be fetched from catalog\n
# As it is not possible to fetch informations, it is better to raise an error\n
raise NotImplementedError(tag)\n
\n
# Change the title\n
software_instance.edit(title=state_change.kwargs[\'new_name\'])\n
</string>
</value>
instance.edit(title=software_title, activate_kw={\'tag\': tag})\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
...
...
@@ -63,11 +80,11 @@ software_instance.edit(title=state_change.kwargs[\'new_name\'])\n
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Software
Instance_rename
</string>
</value>
<value>
<string>
Requested
Instance_rename
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Rename software instance
</string>
</value>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
...
...
master/bt5/vifib_slapos_core/WorkflowTemplateItem/portal_workflow/instance_slap_interface_workflow/states/draft.xml
View file @
9b95283d
...
...
@@ -22,6 +22,7 @@
<key>
<string>
transitions
</string>
</key>
<value>
<tuple>
<string>
rename
</string>
<string>
request_destroy
</string>
<string>
request_instance
</string>
<string>
request_start
</string>
...
...
master/bt5/vifib_slapos_core/WorkflowTemplateItem/portal_workflow/instance_slap_interface_workflow/states/start_requested.xml
View file @
9b95283d
...
...
@@ -22,6 +22,7 @@
<key>
<string>
transitions
</string>
</key>
<value>
<tuple>
<string>
rename
</string>
<string>
request_destroy
</string>
<string>
request_instance
</string>
<string>
request_start
</string>
...
...
master/bt5/vifib_slapos_core/WorkflowTemplateItem/portal_workflow/instance_slap_interface_workflow/states/stop_requested.xml
View file @
9b95283d
...
...
@@ -22,6 +22,7 @@
<key>
<string>
transitions
</string>
</key>
<value>
<tuple>
<string>
rename
</string>
<string>
request_destroy
</string>
<string>
request_instance
</string>
<string>
request_start
</string>
...
...
master/bt5/vifib_
base/WorkflowTemplateItem/portal_workflow/software_
instance_slap_interface_workflow/transitions/rename.xml
→
master/bt5/vifib_
slapos_core/WorkflowTemplateItem/portal_workflow/
instance_slap_interface_workflow/transitions/rename.xml
View file @
9b95283d
...
...
@@ -24,7 +24,7 @@
</item>
<item>
<key>
<string>
after_script_name
</string>
</key>
<value>
<string>
Software
Instance_rename
</string>
</value>
<value>
<string>
Requested
Instance_rename
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Rename Software Instance
</string>
</value>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
trigger_type
</string>
</key>
...
...
master/bt5/vifib_slapos_core/bt/revision
View file @
9b95283d
10
\ No newline at end of file
11
\ 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