Commit b398194c authored by Łukasz Nowak's avatar Łukasz Nowak

- check that TradeCondition implements ITransformation

 - declare ITransformation for TradeCondition


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27471 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a16eabfb
......@@ -32,11 +32,13 @@
from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5.Document.Transformation import Transformation
from Products.ERP5.Document.Path import Path
from Products.ERP5.AggregatedAmountList import AggregatedAmountList
import zope.interface
# XXX TODO : getTradeModelLineComposedList and findSpecialiseValueList should
# probably move to Transformation (better names sould be used)
......@@ -72,6 +74,8 @@ class TradeCondition(Path, Transformation):
, PropertySheet.Order
)
zope.interface.implements(interfaces.ITransformation)
security.declareProtected(Permissions.ModifyPortalContent,
'updateAggregatedAmountList')
def updateAggregatedAmountList(self, context, **kw):
......
......@@ -36,6 +36,7 @@ implements_tuple_list = [
('BusinessPath', 'IArrow'),
('BusinessPath', 'IBusinessPath'),
('BusinessPath', 'ICategoryAccessProvider'),
('TradeCondition', 'ITransformation'),
('TradeModelCell', 'ITransformation'),
('TradeModelCell', 'IVariated'),
('TradeModelLine', 'ITransformation'),
......
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