Commit 4d9701ab authored by Jérome Perrin's avatar Jérome Perrin

remove self argument. It should not be included in interface definitions

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6448 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a6ddc6c1
...@@ -37,19 +37,19 @@ class Coordinate(Interface): ...@@ -37,19 +37,19 @@ class Coordinate(Interface):
Common Interface for all Coordinate objects Common Interface for all Coordinate objects
""" """
def asText(self): def asText():
""" """
returns the coordinate as a text string returns the coordinate as a text string
""" """
pass pass
def fromText(self,coordinate_text): def fromText(coordinate_text):
""" """
modifies the coordinate according to the input text modifies the coordinate according to the input text
""" """
pass pass
def standardTextFormat(self): def standardTextFormat():
""" """
returns a string which defines the standard returns a string which defines the standard
string format for that coordinate string format for that coordinate
......
...@@ -37,73 +37,73 @@ class Entity(Interface): ...@@ -37,73 +37,73 @@ class Entity(Interface):
Common Interface for Entity objects Common Interface for Entity objects
""" """
def getDefaultAddress(self): def getDefaultAddress():
""" """
Returns the default address as a text string Returns the default address as a text string
""" """
pass pass
def getDefaultAddressStreetAddress(self): def getDefaultAddressStreetAddress():
""" """
Returns the default address street as a text string Returns the default address street as a text string
""" """
pass pass
def getDefaultAddressCity(self): def getDefaultAddressCity():
""" """
Returns the default address city as a text string Returns the default address city as a text string
""" """
pass pass
def getDefaultAddressRegion(self): def getDefaultAddressRegion():
""" """
Returns the default address region as a text string Returns the default address region as a text string
""" """
pass pass
def getDefaultAddressZipCode(self): def getDefaultAddressZipCode():
""" """
Returns the default address zip code as a text string Returns the default address zip code as a text string
""" """
pass pass
def getDefaultTelephone(self): def getDefaultTelephone():
""" """
Returns the default telephone as a text string Returns the default telephone as a text string
""" """
pass pass
def getDefaultFax(self): def getDefaultFax():
""" """
Returns the default fax as a text string Returns the default fax as a text string
""" """
pass pass
def getDefaultEmail(self): def getDefaultEmail():
""" """
Returns the default email as a text string Returns the default email as a text string
""" """
pass pass
def setDefaultAddress(self, coordinate): def setDefaultAddress(coordinate):
""" """
Updates the default address from a standard text string Updates the default address from a standard text string
""" """
pass pass
def setDefaultTelephone(self, coordinate): def setDefaultTelephone(coordinate):
""" """
Updates the default telephone from a standard text string Updates the default telephone from a standard text string
""" """
pass pass
def setDefaultFax(self, coordinate): def setDefaultFax(coordinate):
""" """
Updates the default fax from a standard text string Updates the default fax from a standard text string
""" """
pass pass
def setDefaultEmail(self, coordinate): def setDefaultEmail(coordinate):
""" """
Updates the default email from a standard text string Updates the default email from a standard text string
""" """
......
...@@ -37,7 +37,7 @@ class Predicate(Interface): ...@@ -37,7 +37,7 @@ class Predicate(Interface):
A Predicate allows to make a statement about a document. A Predicate allows to make a statement about a document.
A statement can be related to: 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. ) - the categories of the document (ex. )
...@@ -45,20 +45,20 @@ class Predicate(Interface): ...@@ -45,20 +45,20 @@ class Predicate(Interface):
implemented by subclasses. implemented by subclasses.
""" """
def test(self, context): def test(context):
""" """
A Predicate can be tested on a given context A Predicate can be tested on a given context
""" """
pass pass
def asPythonExpression(self): def asPythonExpression():
""" """
A Predicate can be rendered as a python expression. This A Predicate can be rendered as a python expression. This
is the preferred approach within Zope. is the preferred approach within Zope.
""" """
pass pass
def asSqlExpression(self): def asSqlExpression():
""" """
A Predicate can be rendered as an sql expression. This A Predicate can be rendered as an sql expression. This
can be useful to create reporting trees based on the can be useful to create reporting trees based on the
......
...@@ -44,7 +44,7 @@ class Variated(Interface): ...@@ -44,7 +44,7 @@ class Variated(Interface):
# into VariationValue instances. # into VariationValue instances.
# Discrete Variation accessors # Discrete Variation accessors
def getVariationCategoryList(self): def getVariationCategoryList():
""" """
returns a list or relative URLs which defines returns a list or relative URLs which defines
a discrete variation (ie. a list of category a discrete variation (ie. a list of category
...@@ -52,7 +52,7 @@ class Variated(Interface): ...@@ -52,7 +52,7 @@ class Variated(Interface):
""" """
pass pass
def _setVariationCategoryList(self,node_list): def _setVariationCategoryList(node_list):
""" """
modifies the discrete variation of an modifies the discrete variation of an
variated instance by providing a list variated instance by providing a list
...@@ -60,7 +60,7 @@ class Variated(Interface): ...@@ -60,7 +60,7 @@ class Variated(Interface):
""" """
pass pass
def setVariationCategoryList(self,node_list): def setVariationCategoryList(node_list):
""" """
modifies the discrete variation of an modifies the discrete variation of an
variated instance by providing a list variated instance by providing a list
...@@ -70,7 +70,7 @@ class Variated(Interface): ...@@ -70,7 +70,7 @@ class Variated(Interface):
""" """
pass pass
def getVariationBaseCategoryList(self,node_list): def getVariationBaseCategoryList(node_list):
""" """
returns a list of base category ids returns a list of base category ids
which are used to define discrete variations which are used to define discrete variations
...@@ -78,7 +78,7 @@ class Variated(Interface): ...@@ -78,7 +78,7 @@ class Variated(Interface):
""" """
pass pass
def _setVariationBaseCategoryList(self,node_list): def _setVariationBaseCategoryList(node_list):
""" """
modifies the list of base category ids modifies the list of base category ids
which are used to define discrete variations which are used to define discrete variations
...@@ -86,7 +86,7 @@ class Variated(Interface): ...@@ -86,7 +86,7 @@ class Variated(Interface):
""" """
pass pass
def setVariationBaseCategoryList(self,node_list): def setVariationBaseCategoryList(node_list):
""" """
modifies the list of base category ids modifies the list of base category ids
which are used to define discrete variations which are used to define discrete variations
...@@ -95,17 +95,17 @@ class Variated(Interface): ...@@ -95,17 +95,17 @@ class Variated(Interface):
pass pass
# General Variation accessors # General Variation accessors
def getVariationValue(self): def getVariationValue():
""" """
""" """
pass pass
def _setVariationValue(self,value): def _setVariationValue(value):
""" """
""" """
pass pass
def setVariationValue(self,value): def setVariationValue(value):
""" """
""" """
pass pass
...@@ -118,30 +118,30 @@ class Variated(Interface): ...@@ -118,30 +118,30 @@ class Variated(Interface):
# Discrete Variation Range accessors # 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 returns a list of categories which are acceptable
as discrete variation values as discrete variation values
""" """
pass pass
def getVariationRangeCategoryItemList(self, base_category_list = (), def getVariationRangeCategoryItemList(base_category_list=(),
display_id='getTitle', base=1, current_category=None): display_id='getTitle', base=1, current_category=None):
""" """
returns a list of (category.id, category.display_id()) which are acceptable returns a list of (category.id, category.display_id()) which are acceptable
as discrete variation values as discrete variation values
""" """
pass 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 returns a list of base categories which are acceptable
as discrete variation values as discrete variation values
""" """
pass pass
def getVariationRangeBaseCategoryItemList(self, base_category_list = (), def getVariationRangeBaseCategoryItemList(base_category_list=(),
display_id='getTitle', base=1, current_category=None): display_id='getTitle', base=1, current_category=None):
""" """
returns a list of base category items which are acceptable returns a list of base category items which are acceptable
as discrete variation values as discrete variation values
......
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