[Erp5-report] r17103 - /erp5/trunk/products/ZSQLCatalog/SQLCatalog.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Oct 22 19:01:16 CEST 2007
Author: jerome
Date: Mon Oct 22 19:01:15 2007
New Revision: 17103
URL: http://svn.erp5.org?rev=17103&view=rev
Log:
fix some docstrings
Modified:
erp5/trunk/products/ZSQLCatalog/SQLCatalog.py
Modified: erp5/trunk/products/ZSQLCatalog/SQLCatalog.py
URL: http://svn.erp5.org/erp5/trunk/products/ZSQLCatalog/SQLCatalog.py?rev=17103&r1=17102&r2=17103&view=diff
==============================================================================
--- erp5/trunk/products/ZSQLCatalog/SQLCatalog.py (original)
+++ erp5/trunk/products/ZSQLCatalog/SQLCatalog.py Mon Oct 22 19:01:15 2007
@@ -2400,7 +2400,6 @@
return sql_method(src__=src__, **kw)
def searchResults(self, REQUEST=None, used=None, **kw):
- """ Builds a complex SQL where_expression to simulate ZCalatog behaviour """
""" Returns a list of brains from a set of constraints on variables """
# The used argument is deprecated and is ignored
method = getattr(self, self.sql_search_results)
@@ -2409,7 +2408,6 @@
__call__ = searchResults
def countResults(self, REQUEST=None, used=None, stat__=1, **kw):
- """ Builds a complex SQL where_expression to simulate ZCalatog behaviour """
""" Returns the number of items which satisfy the where_expression """
# Get the search method
method = getattr(self, self.sql_count_results)
@@ -2503,9 +2501,7 @@
return 0
def getExpression(self, method_name):
- """
- Returns 1 if the method is already filtered,
- else it returns 0
+ """ Get the filter expression text for this method.
"""
if withCMF:
if not hasattr(self,'filter_dict'):
@@ -2516,9 +2512,7 @@
return ""
def getExpressionInstance(self, method_name):
- """
- Returns 1 if the method is already filtered,
- else it returns 0
+ """ Get the filter expression instance for this method.
"""
if withCMF:
if not hasattr(self,'filter_dict'):
@@ -2528,10 +2522,8 @@
return self.filter_dict[method_name]['expression_instance']
return None
- def isPortalTypeSelected(self, method_name,portal_type):
- """
- Returns 1 if the method is already filtered,
- else it returns 0
+ def isPortalTypeSelected(self, method_name, portal_type):
+ """ Returns true if the portal type is selected for this method.
"""
if withCMF:
if not hasattr(self,'filter_dict'):
More information about the Erp5-report
mailing list