Commit be1e7cfa authored by Jérome Perrin's avatar Jérome Perrin

remove deprecated asPythonExpression method

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6449 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4d9701ab
......@@ -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):
"""
......
......@@ -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
......
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