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):
sale_packing_list.getParentValue().deleteContent(sale_packing_list.getId())
return new_sale_order.contentValues(portal_type='Sale Order Line')[0]
@WorkflowMethod.disable
def SlapDocument_migrateSlapState(self):
@WorkflowMethod.disable
def real(self):
from Products.ZSQLCatalog.SQLCatalog import Query, ComplexQuery
def setUpPeriodicity(hosting_subscription):
......@@ -240,14 +241,16 @@ def SlapDocument_migrateSlapState(self):
# Update Local Roles
slap_document.updateLocalRolesOnSecurityGroups()
@WorkflowMethod.disable
def SalePackingListLine_deliver(self):
@WorkflowMethod.disable
def real(self):
portal = self.getPortalObject()
assert(self.getResource() in [portal.portal_preferences.getPreferredInstanceSetupResource(),
portal.portal_preferences.getPreferredInstanceUpdateResource()])
if self.getSimulationState() != 'delivered':
portal.portal_workflow._jumpToStateFor(self.getParentValue(), 'delivered')
self.recursiveReindexObject()
real(self)
def Computer_updateLocalRoles(self):
self.updateLocalRolesOnSecurityGroups(reindex=False)
......
113
\ No newline at end of file
114
\ 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