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
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
6d89715d
Commit
6d89715d
authored
Dec 05, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop not needed causality link.
parent
edc5bc69
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
master/bt5/slapos_upgrader/ExtensionTemplateItem/SlapOSUpgrader.py
...5/slapos_upgrader/ExtensionTemplateItem/SlapOSUpgrader.py
+3
-1
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/00_ERP5Site_migrateInstanceData.xml
...skins/slapos_upgrader/00_ERP5Site_migrateInstanceData.xml
+2
-2
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/Instance_migrateData.xml
...tem/portal_skins/slapos_upgrader/Instance_migrateData.xml
+2
-2
master/bt5/slapos_upgrader/bt/revision
master/bt5/slapos_upgrader/bt/revision
+1
-1
No files found.
master/bt5/slapos_upgrader/ExtensionTemplateItem/SlapOSUpgrader.py
View file @
6d89715d
from
Products.ERP5Type.Base
import
WorkflowMethod
from
Products.ERP5Type.Base
import
WorkflowMethod
def
Instance_migrate
UrlString
(
self
):
def
Instance_migrate
Data
(
self
):
BLACKLIST_RELATIVE_URL_LIST
=
(
BLACKLIST_RELATIVE_URL_LIST
=
(
'software_instance_module/template_slave_instance'
,
'software_instance_module/template_slave_instance'
,
'software_instance_module/template_software_instance'
,
'software_instance_module/template_software_instance'
,
...
@@ -24,6 +24,8 @@ def Instance_migrateUrlString(self):
...
@@ -24,6 +24,8 @@ def Instance_migrateUrlString(self):
self
.
setUrlString
(
old_url
)
self
.
setUrlString
(
old_url
)
assert
(
self
.
getUrlString
()
==
old_url
)
assert
(
self
.
getUrlString
()
==
old_url
)
delattr
(
self
.
aq_base
,
property_id
)
delattr
(
self
.
aq_base
,
property_id
)
if
self
.
getCausality
()
is
not
None
:
self
.
setCausality
(
None
)
if
type
(
self
)
==
type
([]):
if
type
(
self
)
==
type
([]):
for
o
in
self
:
for
o
in
self
:
real
(
o
[
0
])
real
(
o
[
0
])
...
...
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/00_ERP5Site_migrate
UrlString
.xml
→
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/00_ERP5Site_migrate
InstanceData
.xml
View file @
6d89715d
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
portal = context.getPortalObject()\n
<value>
<string>
portal = context.getPortalObject()\n
tag = script.id\n
tag = script.id\n
method_id = \'Instance_migrate
UrlString
\'\n
method_id = \'Instance_migrate
Data
\'\n
for module in (\n
for module in (\n
portal.hosting_subscription_module,\n
portal.hosting_subscription_module,\n
portal.software_instance_module,\n
portal.software_instance_module,\n
...
@@ -74,7 +74,7 @@ return \'Done.\'\n
...
@@ -74,7 +74,7 @@ return \'Done.\'\n
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
00_ERP5Site_migrate
UrlString
</string>
</value>
<value>
<string>
00_ERP5Site_migrate
InstanceData
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/Instance_migrate
UrlString
.xml
→
master/bt5/slapos_upgrader/SkinTemplateItem/portal_skins/slapos_upgrader/Instance_migrate
Data
.xml
View file @
6d89715d
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
_function
</string>
</key>
<key>
<string>
_function
</string>
</key>
<value>
<string>
Instance_migrate
UrlString
</string>
</value>
<value>
<string>
Instance_migrate
Data
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
_module
</string>
</key>
<key>
<string>
_module
</string>
</key>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
Instance_migrate
UrlString
</string>
</value>
<value>
<string>
Instance_migrate
Data
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
...
master/bt5/slapos_upgrader/bt/revision
View file @
6d89715d
10
11
\ 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