Commit e3ff3348 authored by Aurel's avatar Aurel

fixup! sqlvar patche

parent 4e9c0da2
...@@ -83,15 +83,14 @@ def SQLVar_render(self, md): ...@@ -83,15 +83,14 @@ def SQLVar_render(self, md):
% (t, self.__name__, v)) % (t, self.__name__, v))
# Patched by yo. datetime is added. # Patched by yo. datetime is added.
valid_type = 'int', 'float', 'string', 'nb', 'datetime' new_valid_types = 'int', 'float', 'string', 'nb', 'datetime'
valid_type += tuple(map('datetime(%s)'.__mod__, xrange(7))) new_valid_types += tuple(map('datetime(%s)'.__mod__, xrange(7)))
try: try:
# BBB # BBB
from Shared.DC.ZRDB.sqlvar import valid_type from Shared.DC.ZRDB.sqlvar import valid_type
valid_type = valid_type.__contains__ sqlvar.valid_type = new_valid_types.__contains__
sqlvar.valid_type = valid_type
except ImportError: except ImportError:
sqlvar.valid_types = valid_type sqlvar.valid_types = new_valid_types
SQLVar.render = SQLVar_render SQLVar.render = SQLVar_render
......
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