From 16c0751d88477d71eaa38505f509c2c3377be0ba Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Tue, 13 Dec 2005 13:39:39 +0000 Subject: [PATCH] Apply psyco for SQLVar_render. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4628 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/patches/sqlvar.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/product/ERP5Type/patches/sqlvar.py b/product/ERP5Type/patches/sqlvar.py index 78df7fba46..b2ab07a24f 100755 --- a/product/ERP5Type/patches/sqlvar.py +++ b/product/ERP5Type/patches/sqlvar.py @@ -18,6 +18,7 @@ from Shared.DC.ZRDB.sqlvar import SQLVar from Shared.DC.ZRDB import sqlvar from string import atoi,atof from types import StringType +from Products.ERP5Type.PsycoWrapper import psyco def SQLVar_render(self, md): name=self.__name__ @@ -106,6 +107,8 @@ def SQLVar_render(self, md): return v +psyco.bind(SQLVar_render) + # Patched by yo. datetime is added. valid_type={'int':1, 'float':1, 'string':1, 'nb': 1, 'datetime' : 1}.has_key -- 2.30.9