Commit 148367e5 authored by Łukasz Nowak's avatar Łukasz Nowak

Avoid External method decoration.

It just does not work [tm].
parent b734cf39
...@@ -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)
......
113 114
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment