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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
148367e5
Commit
148367e5
authored
May 31, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid External method decoration.
It just does not work [tm].
parent
b734cf39
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
150 additions
and
147 deletions
+150
-147
master/bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
...bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
+149
-146
master/bt5/vifib_upgrader/bt/revision
master/bt5/vifib_upgrader/bt/revision
+1
-1
No files found.
master/bt5/vifib_upgrader/ExtensionTemplateItem/VifibUpgrader.py
View file @
148367e5
...
@@ -91,8 +91,9 @@ def fixSaleOrder(slap_document):
...
@@ -91,8 +91,9 @@ def fixSaleOrder(slap_document):
sale_packing_list
.
getParentValue
().
deleteContent
(
sale_packing_list
.
getId
())
sale_packing_list
.
getParentValue
().
deleteContent
(
sale_packing_list
.
getId
())
return
new_sale_order
.
contentValues
(
portal_type
=
'Sale Order Line'
)[
0
]
return
new_sale_order
.
contentValues
(
portal_type
=
'Sale Order Line'
)[
0
]
@
WorkflowMethod
.
disable
def
SlapDocument_migrateSlapState
(
self
):
def
SlapDocument_migrateSlapState
(
self
):
@
WorkflowMethod
.
disable
def
real
(
self
):
from
Products.ZSQLCatalog.SQLCatalog
import
Query
,
ComplexQuery
from
Products.ZSQLCatalog.SQLCatalog
import
Query
,
ComplexQuery
def
setUpPeriodicity
(
hosting_subscription
):
def
setUpPeriodicity
(
hosting_subscription
):
...
@@ -240,14 +241,16 @@ def SlapDocument_migrateSlapState(self):
...
@@ -240,14 +241,16 @@ def SlapDocument_migrateSlapState(self):
# Update Local Roles
# Update Local Roles
slap_document
.
updateLocalRolesOnSecurityGroups
()
slap_document
.
updateLocalRolesOnSecurityGroups
()
@
WorkflowMethod
.
disable
def
SalePackingListLine_deliver
(
self
):
def
SalePackingListLine_deliver
(
self
):
@
WorkflowMethod
.
disable
def
real
(
self
):
portal
=
self
.
getPortalObject
()
portal
=
self
.
getPortalObject
()
assert
(
self
.
getResource
()
in
[
portal
.
portal_preferences
.
getPreferredInstanceSetupResource
(),
assert
(
self
.
getResource
()
in
[
portal
.
portal_preferences
.
getPreferredInstanceSetupResource
(),
portal
.
portal_preferences
.
getPreferredInstanceUpdateResource
()])
portal
.
portal_preferences
.
getPreferredInstanceUpdateResource
()])
if
self
.
getSimulationState
()
!=
'delivered'
:
if
self
.
getSimulationState
()
!=
'delivered'
:
portal
.
portal_workflow
.
_jumpToStateFor
(
self
.
getParentValue
(),
'delivered'
)
portal
.
portal_workflow
.
_jumpToStateFor
(
self
.
getParentValue
(),
'delivered'
)
self
.
recursiveReindexObject
()
self
.
recursiveReindexObject
()
real
(
self
)
def
Computer_updateLocalRoles
(
self
):
def
Computer_updateLocalRoles
(
self
):
self
.
updateLocalRolesOnSecurityGroups
(
reindex
=
False
)
self
.
updateLocalRolesOnSecurityGroups
(
reindex
=
False
)
...
...
master/bt5/vifib_upgrader/bt/revision
View file @
148367e5
113
114
\ 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