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
0a817ea5
Commit
0a817ea5
authored
Dec 05, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid template document migration.
parent
8227cf75
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
master/bt5/slapos_upgrader/ExtensionTemplateItem/SlapOSUpgrader.py
...5/slapos_upgrader/ExtensionTemplateItem/SlapOSUpgrader.py
+7
-0
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 @
0a817ea5
from
Products.ERP5Type.Base
import
WorkflowMethod
from
Products.ERP5Type.Base
import
WorkflowMethod
def
Instance_migrateUrlString
(
self
):
def
Instance_migrateUrlString
(
self
):
BLACKLIST_RELATIVE_URL_LIST
=
(
'software_instance_module/template_slave_instance'
,
'software_instance_module/template_software_instance'
,
'hosting_subscription_module/template_hosting_subscription'
,
)
@
WorkflowMethod
.
disable
@
WorkflowMethod
.
disable
def
real
(
self
):
def
real
(
self
):
if
self
.
getRelativeUrl
()
in
BLACKLIST_RELATIVE_URL_LIST
:
return
property_id
=
'root_software_release_url'
property_id
=
'root_software_release_url'
if
self
.
getPortalType
()
not
in
(
'Hosting Subscription'
,
'Software Instance'
,
'Slave Instance'
):
if
self
.
getPortalType
()
not
in
(
'Hosting Subscription'
,
'Software Instance'
,
'Slave Instance'
):
raise
TypeError
(
self
.
getPortalType
())
raise
TypeError
(
self
.
getPortalType
())
...
...
master/bt5/slapos_upgrader/bt/revision
View file @
0a817ea5
8
9
\ 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