[Erp5-report] r6448 - /erp5/trunk/products/ERP5/Interface/

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 4 11:19:14 CEST 2006


Author: jerome
Date: Tue Apr  4 11:19:11 2006
New Revision: 6448

URL: http://svn.erp5.org?rev=6448&view=rev
Log:
remove self argument. It should not be included in interface definitions

Modified:
    erp5/trunk/products/ERP5/Interface/Coordinate.py
    erp5/trunk/products/ERP5/Interface/Entity.py
    erp5/trunk/products/ERP5/Interface/Predicate.py
    erp5/trunk/products/ERP5/Interface/Variated.py

Modified: erp5/trunk/products/ERP5/Interface/Coordinate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Interface/Coordinate.py?rev=6448&r1=6447&r2=6448&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Interface/Coordinate.py (original)
+++ erp5/trunk/products/ERP5/Interface/Coordinate.py Tue Apr  4 11:19:11 2006
@@ -37,19 +37,19 @@
         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

Modified: erp5/trunk/products/ERP5/Interface/Entity.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Interface/Entity.py?rev=6448&r1=6447&r2=6448&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Interface/Entity.py (original)
+++ erp5/trunk/products/ERP5/Interface/Entity.py Tue Apr  4 11:19:11 2006
@@ -37,73 +37,73 @@
         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
         """

Modified: erp5/trunk/products/ERP5/Interface/Predicate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Interface/Predicate.py?rev=6448&r1=6447&r2=6448&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Interface/Predicate.py (original)
+++ erp5/trunk/products/ERP5/Interface/Predicate.py Tue Apr  4 11:19:11 2006
@@ -37,7 +37,7 @@
     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 @@
     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

Modified: erp5/trunk/products/ERP5/Interface/Variated.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Interface/Variated.py?rev=6448&r1=6447&r2=6448&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Interface/Variated.py (original)
+++ erp5/trunk/products/ERP5/Interface/Variated.py Tue Apr  4 11:19:11 2006
@@ -44,7 +44,7 @@
     # 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 @@
         """
         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 @@
         """
         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 @@
         """
         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 @@
         """
         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 @@
         """
         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 @@
         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 @@
 
     # 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




More information about the Erp5-report mailing list