Commit f90a08d0 authored by Aurel's avatar Aurel

budget cell : some more fixes thanks to julien

define security on the right class
use newstyle class so that slots is effective
cleanup whitespace and indentation
parent 8b5b8ae9
......@@ -36,7 +36,8 @@ from Products.ERP5.mixin.variated import VariatedMixin
from Products.ERP5Type.Cache import transactional_cached
from ZTUtils import make_query
class TempBudgetCell:
class TempBudgetCell(object):
__allow_access_to_unprotected_subobjects__ = 1
__slots__ = ('amount', 'cell_index', 'url', 'engaged_budget')
def __init__(self, amount, cell_index, url, engaged_budget):
self.amount = amount
......@@ -82,7 +83,6 @@ class BudgetLine(Predicate, XMLMatrix, VariatedMixin):
meta_type='ERP5 Budget Line'
portal_type='Budget Line'
add_permission = Permissions.AddPortalContent
__allow_access_to_unprotected_subobjects__ = 1
# Declarative security
security = ClassSecurityInfo()
......
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