diff --git a/product/ERP5/Interface/Coordinate.py b/product/ERP5/Interface/Coordinate.py index 2c35916b9a13ca1056f29f1738aa2f1f020e7ec2..093e25c6ffb8148e34c0efe95d79315359f89c80 100644 --- a/product/ERP5/Interface/Coordinate.py +++ b/product/ERP5/Interface/Coordinate.py @@ -37,19 +37,19 @@ class Coordinate(Interface): Common Interface for all Coordinate objects """ - def asText(self): + def asText(): """ returns the coordinate as a text string """ pass - def fromText(self,coordinate_text): + def fromText(coordinate_text): """ modifies the coordinate according to the input text """ pass - def standardTextFormat(self): + def standardTextFormat(): """ returns a string which defines the standard string format for that coordinate diff --git a/product/ERP5/Interface/Entity.py b/product/ERP5/Interface/Entity.py index 37861adc04833073a5e8fbe3cb6fd41233a6082c..81986810335f12575fb1ba16e24d7609c42d088d 100644 --- a/product/ERP5/Interface/Entity.py +++ b/product/ERP5/Interface/Entity.py @@ -37,73 +37,73 @@ class Entity(Interface): Common Interface for Entity objects """ - def getDefaultAddress(self): + def getDefaultAddress(): """ Returns the default address as a text string """ pass - def getDefaultAddressStreetAddress(self): + def getDefaultAddressStreetAddress(): """ Returns the default address street as a text string """ pass - def getDefaultAddressCity(self): + def getDefaultAddressCity(): """ Returns the default address city as a text string """ pass - def getDefaultAddressRegion(self): + def getDefaultAddressRegion(): """ Returns the default address region as a text string """ pass - def getDefaultAddressZipCode(self): + def getDefaultAddressZipCode(): """ Returns the default address zip code as a text string """ pass - def getDefaultTelephone(self): + def getDefaultTelephone(): """ Returns the default telephone as a text string """ pass - def getDefaultFax(self): + def getDefaultFax(): """ Returns the default fax as a text string """ pass - def getDefaultEmail(self): + def getDefaultEmail(): """ Returns the default email as a text string """ pass - def setDefaultAddress(self, coordinate): + def setDefaultAddress(coordinate): """ Updates the default address from a standard text string """ pass - def setDefaultTelephone(self, coordinate): + def setDefaultTelephone(coordinate): """ Updates the default telephone from a standard text string """ pass - def setDefaultFax(self, coordinate): + def setDefaultFax(coordinate): """ Updates the default fax from a standard text string """ pass - def setDefaultEmail(self, coordinate): + def setDefaultEmail(coordinate): """ Updates the default email from a standard text string """ diff --git a/product/ERP5/Interface/Predicate.py b/product/ERP5/Interface/Predicate.py index 34e090b91d24946a3a1600d7dddf9f47f6c65ab8..dc4486fdce6109145ea988b66742af4e19d264ed 100644 --- a/product/ERP5/Interface/Predicate.py +++ b/product/ERP5/Interface/Predicate.py @@ -37,7 +37,7 @@ class Predicate(Interface): A Predicate allows to make a statement about a document. A statement can be related to: - - the attributes of the document (ex. prix >= 3.0) + - the attributes of the document (ex. price >= 3.0) - the categories of the document (ex. ) @@ -45,20 +45,20 @@ class Predicate(Interface): implemented by subclasses. """ - def test(self, context): + def test(context): """ A Predicate can be tested on a given context """ pass - def asPythonExpression(self): + def asPythonExpression(): """ A Predicate can be rendered as a python expression. This is the preferred approach within Zope. """ pass - def asSqlExpression(self): + def asSqlExpression(): """ A Predicate can be rendered as an sql expression. This can be useful to create reporting trees based on the diff --git a/product/ERP5/Interface/Variated.py b/product/ERP5/Interface/Variated.py index 260f974526018a3508a769218e1327e524a4f421..1632c8954cf8dd53bd85886db7d139b66ec59961 100644 --- a/product/ERP5/Interface/Variated.py +++ b/product/ERP5/Interface/Variated.py @@ -44,7 +44,7 @@ class Variated(Interface): # into VariationValue instances. # Discrete Variation accessors - def getVariationCategoryList(self): + def getVariationCategoryList(): """ returns a list or relative URLs which defines a discrete variation (ie. a list of category @@ -52,7 +52,7 @@ class Variated(Interface): """ pass - def _setVariationCategoryList(self,node_list): + def _setVariationCategoryList(node_list): """ modifies the discrete variation of an variated instance by providing a list @@ -60,7 +60,7 @@ class Variated(Interface): """ pass - def setVariationCategoryList(self,node_list): + def setVariationCategoryList(node_list): """ modifies the discrete variation of an variated instance by providing a list @@ -70,7 +70,7 @@ class Variated(Interface): """ pass - def getVariationBaseCategoryList(self,node_list): + def getVariationBaseCategoryList(node_list): """ returns a list of base category ids which are used to define discrete variations @@ -78,7 +78,7 @@ class Variated(Interface): """ pass - def _setVariationBaseCategoryList(self,node_list): + def _setVariationBaseCategoryList(node_list): """ modifies the list of base category ids which are used to define discrete variations @@ -86,7 +86,7 @@ class Variated(Interface): """ pass - def setVariationBaseCategoryList(self,node_list): + def setVariationBaseCategoryList(node_list): """ modifies the list of base category ids which are used to define discrete variations @@ -95,17 +95,17 @@ class Variated(Interface): pass # General Variation accessors - def getVariationValue(self): + def getVariationValue(): """ """ pass - def _setVariationValue(self,value): + def _setVariationValue(value): """ """ pass - def setVariationValue(self,value): + def setVariationValue(value): """ """ pass @@ -118,30 +118,30 @@ class Variated(Interface): # Discrete Variation Range accessors - def getVariationRangeCategoryList(self, base_category_list = (), base=1): + def getVariationRangeCategoryList(base_category_list=(), base=1): """ returns a list of categories which are acceptable as discrete variation values """ pass - def getVariationRangeCategoryItemList(self, base_category_list = (), - display_id='getTitle', base=1, current_category=None): + def getVariationRangeCategoryItemList(base_category_list=(), + display_id='getTitle', base=1, current_category=None): """ returns a list of (category.id, category.display_id()) which are acceptable as discrete variation values """ pass - def getVariationRangeBaseCategoryList(self, base_category_list = (), base=1): + def getVariationRangeBaseCategoryList(base_category_list=(), base=1): """ returns a list of base categories which are acceptable as discrete variation values """ pass - def getVariationRangeBaseCategoryItemList(self, base_category_list = (), - display_id='getTitle', base=1, current_category=None): + def getVariationRangeBaseCategoryItemList(base_category_list=(), + display_id='getTitle', base=1, current_category=None): """ returns a list of base category items which are acceptable as discrete variation values