[Erp5-report] r27479 - in /erp5/trunk/products/ERP5: Document/ interfaces/

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jun 9 17:19:16 CEST 2009


Author: luke
Date: Tue Jun  9 17:19:16 2009
New Revision: 27479

URL: http://svn.erp5.org?rev=27479&view=rev
Log:
 - docstrings update
 - move description to interface

Modified:
    erp5/trunk/products/ERP5/Document/TradeCondition.py
    erp5/trunk/products/ERP5/interfaces/transformation.py

Modified: erp5/trunk/products/ERP5/Document/TradeCondition.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TradeCondition.py?rev=27479&r1=27478&r2=27479&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TradeCondition.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/TradeCondition.py [utf8] Tue Jun  9 17:19:16 2009
@@ -79,11 +79,6 @@
     security.declareProtected(Permissions.ModifyPortalContent,
                               'updateAggregatedAmountList')
     def updateAggregatedAmountList(self, context, **kw):
-      '''
-        updates exisiting movement and returns new if any
-        return a dict of list of movement 'movement_to_add_list' and
-        'movement_to_delete_list'
-      '''
       existing_movement_list = context.getMovementList()
       aggregated_amount_list = self.getAggregatedAmountList(context=context,
           **kw)
@@ -128,9 +123,10 @@
         'findSpecialiseValueList')
     def findSpecialiseValueList(self, context, portal_type_list=None,
         visited_trade_condition_list=None):
-      '''Return a list of object. The list will represent the inheritance tree.
-      It uses Breadth First Search.
-      '''
+      """Returns a list of specialised objects representing inheritance tree.
+
+         Uses Breadth First Search.
+      """
       if visited_trade_condition_list is None:
         visited_trade_condition_list = []
       specialise_value_list = []
@@ -151,8 +147,8 @@
     security.declareProtected(Permissions.AccessContentsInformation,
                               'getTradeModelLineComposedList')
     def getTradeModelLineComposedList(self, context=None, portal_type_list=None):
-      """
-      Returns list of Trade Model Lines using composition
+      """Returns list of Trade Model Lines using composition.
+
       Reference of Trade Model Line is used to hide other Trade Model Line
       In chain first found Trade Model Line has precedence
       Context's, if not None, Trade Model Lines have precedence

Modified: erp5/trunk/products/ERP5/interfaces/transformation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/interfaces/transformation.py?rev=27479&r1=27478&r2=27479&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/interfaces/transformation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/interfaces/transformation.py [utf8] Tue Jun  9 17:19:16 2009
@@ -54,7 +54,10 @@
     pass
 
   def updateAggregatedAmountList(context):
-    """Updates currently existing movements on delivery
+    """Updates existing movement and returns new or deleted if any.
+
+    Returns a dict of list of movement 'movement_to_add_list' and
+    'movement_to_delete_list'
 
     context - represents object on which update shall happen
 




More information about the Erp5-report mailing list