From 45ffe34c384664b6eb7eedc94723e36c0a1f68a1 Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Sat, 13 Jan 2007 15:49:11 +0000
Subject: [PATCH] Add Sql compatible method aliases to ease upgrade (SQL is now
 the standard).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12065 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/CMFCategory/Category.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/product/CMFCategory/Category.py b/product/CMFCategory/Category.py
index 33026daef3..3bfbf75df1 100644
--- a/product/CMFCategory/Category.py
+++ b/product/CMFCategory/Category.py
@@ -440,6 +440,9 @@ class Category(Folder):
       #  sql_text += ' OR %s' % o.asSQLExpression()
       return sql_text
 
+    security.declareProtected( Permissions.AccessContentsInformation, 'asSqlExpression' )
+    asSqlExpression = asSQLExpression
+  
     # A Category's categories is self
 
 
-- 
2.30.9