Commit 2c361026 authored by Yoshinori Okuji's avatar Yoshinori Okuji

AppliedRule's expand needs to be unrestricted.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18531 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7c78fde9
...@@ -32,6 +32,7 @@ from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface ...@@ -32,6 +32,7 @@ from Products.ERP5Type import Permissions, PropertySheet, Constraint, Interface
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
from Products.ERP5Type.PsycoWrapper import psyco from Products.ERP5Type.PsycoWrapper import psyco
from Products.ERP5Type.TransactionalVariable import getTransactionalVariable from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
from zLOG import LOG from zLOG import LOG
...@@ -93,6 +94,10 @@ class AppliedRule(XMLObject): ...@@ -93,6 +94,10 @@ class AppliedRule(XMLObject):
An applied rule can be expanded only if its parent movement An applied rule can be expanded only if its parent movement
is expanded. is expanded.
""" """
expand = UnrestrictedMethod(self._expand)
return expand(**kw)
def _expand(self, **kw):
tv = getTransactionalVariable(self) tv = getTransactionalVariable(self)
cache = tv.setdefault(TREE_DELIVERED_CACHE_KEY, {}) cache = tv.setdefault(TREE_DELIVERED_CACHE_KEY, {})
cache_enabled = cache.get(TREE_DELIVERED_CACHE_ENABLED, 0) cache_enabled = cache.get(TREE_DELIVERED_CACHE_ENABLED, 0)
......
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