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
Thomas Gambier
slapos.core
Commits
5057e18a
Commit
5057e18a
authored
Aug 09, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Encode to hex.
Data can be really complex string, which can be bad for tag.
parent
e1b80468
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/person_slap_interface_workflow/scripts/Person_requestSoftwareInstance.xml
...rface_workflow/scripts/Person_requestSoftwareInstance.xml
+1
-1
master/bt5/vifib_slap/bt/revision
master/bt5/vifib_slap/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
+1
-1
master/bt5/vifib_slapos_core/WorkflowTemplateItem/portal_workflow/instance_slap_interface_workflow/scripts/RequesterInstance_request.xml
..._interface_workflow/scripts/RequesterInstance_request.xml
+1
-1
master/bt5/vifib_slapos_core/bt/revision
master/bt5/vifib_slapos_core/bt/revision
+1
-1
master/product/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
...oduct/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
+1
-1
No files found.
master/bt5/vifib_slap/WorkflowTemplateItem/portal_workflow/person_slap_interface_workflow/scripts/Person_requestSoftwareInstance.xml
View file @
5057e18a
...
@@ -93,7 +93,7 @@ if (instance_xml == empty_parameter) or (instance_xml.startswith(empty_parameter
...
@@ -93,7 +93,7 @@ if (instance_xml == empty_parameter) or (instance_xml.startswith(empty_parameter
hosting_subscription_portal_type = "Hosting Subscription"\n
hosting_subscription_portal_type = "Hosting Subscription"\n
\n
\n
tag = "%s_%s_inProgress" % (person.getUid(), \n
tag = "%s_%s_inProgress" % (person.getUid(), \n
software_title)\n
software_title
.encode(\'hex\')
)\n
\n
\n
if (portal.portal_activities.countMessageWithTag(tag) > 0):\n
if (portal.portal_activities.countMessageWithTag(tag) > 0):\n
# The software instance is already under creation but can not be fetched from catalog\n
# The software instance is already under creation but can not be fetched from catalog\n
...
...
master/bt5/vifib_slap/bt/revision
View file @
5057e18a
794
795
\ No newline at end of file
\ No newline at end of file
master/bt5/vifib_slapos_core/WorkflowTemplateItem/portal_workflow/instance_slap_interface_workflow/scripts/RequestedInstance_rename.xml
View file @
5057e18a
...
@@ -62,7 +62,7 @@ hosting_subscription = instance.getSpecialiseValue(portal_type="Hosting Subscrip
...
@@ -62,7 +62,7 @@ hosting_subscription = instance.getSpecialiseValue(portal_type="Hosting Subscrip
\n
\n
# Instance can be moved from one requester to another\n
# Instance can be moved from one requester to another\n
# Prevent creating two instances with the same title\n
# Prevent creating two instances with the same title\n
tag = "%s_%s_inProgress" % (hosting_subscription.getUid(), software_title)\n
tag = "%s_%s_inProgress" % (hosting_subscription.getUid(), software_title
.encode(\'hex\')
)\n
if (portal.portal_activities.countMessageWithTag(tag) >
0):\n
if (portal.portal_activities.countMessageWithTag(tag) >
0):\n
# The software instance is already under creation but can not be fetched from catalog\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
# As it is not possible to fetch informations, it is better to raise an error\n
...
...
master/bt5/vifib_slapos_core/WorkflowTemplateItem/portal_workflow/instance_slap_interface_workflow/scripts/RequesterInstance_request.xml
View file @
5057e18a
...
@@ -82,7 +82,7 @@ else:\n
...
@@ -82,7 +82,7 @@ else:\n
\n
\n
# Instance can be moved from one requester to another\n
# Instance can be moved from one requester to another\n
# Prevent creating two instances with the same title\n
# Prevent creating two instances with the same title\n
tag = "%s_%s_inProgress" % (hosting_subscription.getUid(), software_title)\n
tag = "%s_%s_inProgress" % (hosting_subscription.getUid(), software_title
.encode(\'hex\')
)\n
if (portal.portal_activities.countMessageWithTag(tag) >
0):\n
if (portal.portal_activities.countMessageWithTag(tag) >
0):\n
# The software instance is already under creation but can not be fetched from catalog\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
# As it is not possible to fetch informations, it is better to raise an error\n
...
...
master/bt5/vifib_slapos_core/bt/revision
View file @
5057e18a
42
43
\ No newline at end of file
\ No newline at end of file
master/product/Vifib/tests/testVifibSlapComputerPartitionUpdate.py
View file @
5057e18a
...
@@ -458,7 +458,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
...
@@ -458,7 +458,7 @@ class TestVifibSlapComputerPartitionUpdate(TestVifibSlapWebServiceMixin):
'test_vifib_customer'
).
getUid
()
'test_vifib_customer'
).
getUid
()
software_title
=
sequence
[
'root_software_instance_title'
]
software_title
=
sequence
[
'root_software_instance_title'
]
tag
=
"%s_%s_inProgress"
%
(
person_uid
,
tag
=
"%s_%s_inProgress"
%
(
person_uid
,
software_title
)
software_title
.
encode
(
'hex'
)
)
self
.
assertNotEqual
(
0
,
self
.
portal
.
portal_activities
.
self
.
assertNotEqual
(
0
,
self
.
portal
.
portal_activities
.
countMessageWithTag
(
tag
))
countMessageWithTag
(
tag
))
...
...
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