Commit 16c0751d authored by Yoshinori Okuji's avatar Yoshinori Okuji

Apply psyco for SQLVar_render.


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