From be1e7cfa779113c7ccf1955dc815eee204d17c4a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 4 Apr 2006 09:21:57 +0000
Subject: [PATCH] remove deprecated asPythonExpression method

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6449 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/CMFCategory/Category.py     | 8 --------
 product/ERP5/Interface/Predicate.py | 7 -------
 2 files changed, 15 deletions(-)

diff --git a/product/CMFCategory/Category.py b/product/CMFCategory/Category.py
index 16bccd9e236..81d3fb56ee1 100644
--- a/product/CMFCategory/Category.py
+++ b/product/CMFCategory/Category.py
@@ -397,14 +397,6 @@ class Category(Folder):
       """
       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):
       """
diff --git a/product/ERP5/Interface/Predicate.py b/product/ERP5/Interface/Predicate.py
index dc4486fdce6..9c6a4615634 100644
--- a/product/ERP5/Interface/Predicate.py
+++ b/product/ERP5/Interface/Predicate.py
@@ -51,13 +51,6 @@ class Predicate(Interface):
     """
     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
-- 
2.30.9