[Erp5-report] r27471 - in /erp5/trunk/products/ERP5: Document/ tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jun 9 14:58:08 CEST 2009


Author: luke
Date: Tue Jun  9 14:58:06 2009
New Revision: 27471

URL: http://svn.erp5.org?rev=27471&view=rev
Log:
 - check that TradeCondition implements ITransformation
 - declare ITransformation for TradeCondition

Modified:
    erp5/trunk/products/ERP5/Document/TradeCondition.py
    erp5/trunk/products/ERP5/tests/testERP5Interfaces.py

Modified: erp5/trunk/products/ERP5/Document/TradeCondition.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TradeCondition.py?rev=27471&r1=27470&r2=27471&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TradeCondition.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TradeCondition.py [utf8] Tue Jun  9 14:58:06 2009
@@ -32,10 +32,12 @@
 
 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)
@@ -71,6 +73,8 @@
                       , PropertySheet.TradeCondition
                       , PropertySheet.Order
                       )
+
+    zope.interface.implements(interfaces.ITransformation)
 
     security.declareProtected(Permissions.ModifyPortalContent,
                               'updateAggregatedAmountList')

Modified: erp5/trunk/products/ERP5/tests/testERP5Interfaces.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Interfaces.py?rev=27471&r1=27470&r2=27471&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Interfaces.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Interfaces.py [utf8] Tue Jun  9 14:58:06 2009
@@ -36,6 +36,7 @@
   ('BusinessPath', 'IArrow'),
   ('BusinessPath', 'IBusinessPath'),
   ('BusinessPath', 'ICategoryAccessProvider'),
+  ('TradeCondition', 'ITransformation'),
   ('TradeModelCell', 'ITransformation'),
   ('TradeModelCell', 'IVariated'),
   ('TradeModelLine', 'ITransformation'),




More information about the Erp5-report mailing list