[Erp5-report] r6449 - in /erp5/trunk/products: CMFCategory/ ERP5/Interface/
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Apr 4 11:21:59 CEST 2006
Author: jerome
Date: Tue Apr 4 11:21:57 2006
New Revision: 6449
URL: http://svn.erp5.org?rev=6449&view=rev
Log:
remove deprecated asPythonExpression method
Modified:
erp5/trunk/products/CMFCategory/Category.py
erp5/trunk/products/ERP5/Interface/Predicate.py
Modified: erp5/trunk/products/CMFCategory/Category.py
URL: http://svn.erp5.org/erp5/trunk/products/CMFCategory/Category.py?rev=6449&r1=6448&r2=6449&view=diff
==============================================================================
--- erp5/trunk/products/CMFCategory/Category.py (original)
+++ erp5/trunk/products/CMFCategory/Category.py Tue Apr 4 11:21:57 2006
@@ -397,14 +397,6 @@
"""
return context.isMemberOf(self.getCategoryName())
- security.declareProtected( Permissions.AccessContentsInformation, 'asPythonExpression' )
- def asPythonExpression(self, strict_membership=0):
- """
- A Predicate can be rendered as a python expression. This
- is the preferred approach within Zope.
- """
- return "context.isMemberOf('%s')" % self.getCategoryRelativeUrl(base = 1)
-
security.declareProtected( Permissions.AccessContentsInformation, 'asSqlExpression' )
def asSqlExpression(self, strict_membership=0, table='category', base_category = None):
"""
Modified: erp5/trunk/products/ERP5/Interface/Predicate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Interface/Predicate.py?rev=6449&r1=6448&r2=6449&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Interface/Predicate.py (original)
+++ erp5/trunk/products/ERP5/Interface/Predicate.py Tue Apr 4 11:21:57 2006
@@ -51,13 +51,6 @@
"""
pass
- def asPythonExpression():
- """
- A Predicate can be rendered as a python expression. This
- is the preferred approach within Zope.
- """
- pass
-
def asSqlExpression():
"""
A Predicate can be rendered as an sql expression. This
More information about the Erp5-report
mailing list