Commit 1ea3b431 authored by Nicolas Dumazet's avatar Nicolas Dumazet

small docstring tweaks


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31474 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 003f6914
...@@ -53,7 +53,7 @@ class Transformation(XMLObject, Predicate, Variated): ...@@ -53,7 +53,7 @@ class Transformation(XMLObject, Predicate, Variated):
to ...) to ...)
XXX Transformation works only for a maximum of 3 variation base category... XXX Transformation works only for a maximum of 3 variation base category...
Matrixbox must be rewrite for a clean implementation of n base category Matrixbox must be rewritten for a clean implementation of n base category
""" """
meta_type = 'ERP5 Transformation' meta_type = 'ERP5 Transformation'
...@@ -90,8 +90,8 @@ class Transformation(XMLObject, Predicate, Variated): ...@@ -90,8 +90,8 @@ class Transformation(XMLObject, Predicate, Variated):
'updateVariationCategoryList') 'updateVariationCategoryList')
def updateVariationCategoryList(self): def updateVariationCategoryList(self):
""" """
Check if variation category list of the resource changed and update transformation Check if variation category list of the resource has changed and update
and transformation line transformation and transformation line
""" """
self.setVariationBaseCategoryList(self.getVariationBaseCategoryList()) self.setVariationBaseCategoryList(self.getVariationBaseCategoryList())
transformation_line_list = self.contentValues() transformation_line_list = self.contentValues()
...@@ -103,7 +103,7 @@ class Transformation(XMLObject, Predicate, Variated): ...@@ -103,7 +103,7 @@ class Transformation(XMLObject, Predicate, Variated):
def getVariationRangeBaseCategoryList(self): def getVariationRangeBaseCategoryList(self):
""" """
Returns possible variation base_category ids of the Returns possible variation base_category ids of the
default resource which can be used a variation axis default resource which can be used as variation axis
in the transformation. in the transformation.
""" """
resource = self.getResourceValue() resource = self.getResourceValue()
...@@ -137,12 +137,12 @@ class Transformation(XMLObject, Predicate, Variated): ...@@ -137,12 +137,12 @@ class Transformation(XMLObject, Predicate, Variated):
""" """
Returns possible variation category values for the Returns possible variation category values for the
transformation according to the default resource. transformation according to the default resource.
Possible category values is provided as a list of Possible category values are provided as a list of
tuples (id, title). This is mostly tuples (id, title). This is mostly
useful in ERP5Form instances to generate selection useful in ERP5Form instances to generate selection
menus. menus.
User may want to define generic transformation without User may want to define generic transformation without
any resource define. any defined resource.
""" """
if base_category_list is (): if base_category_list is ():
base_category_list = self.getVariationBaseCategoryList() base_category_list = self.getVariationBaseCategoryList()
...@@ -237,7 +237,7 @@ class Transformation(XMLObject, Predicate, Variated): ...@@ -237,7 +237,7 @@ class Transformation(XMLObject, Predicate, Variated):
rejected_resource_uid_list=None, rejected_resource_uid_list=None,
context_quantity=0,**kw): context_quantity=0,**kw):
""" """
getAggregatedAmountList returns a AggregatedAmountList which getAggregatedAmountList returns an AggregatedAmountList which
can be used either to do some calculation (ex. price, BOM) can be used either to do some calculation (ex. price, BOM)
or to display a detailed view of a transformation. or to display a detailed view of a transformation.
......
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