Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
139
Merge Requests
139
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
e3ff3348
Commit
e3ff3348
authored
Mar 30, 2021
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! sqlvar patche
parent
4e9c0da2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
product/ERP5Type/patches/sqlvar.py
product/ERP5Type/patches/sqlvar.py
+4
-5
No files found.
product/ERP5Type/patches/sqlvar.py
View file @
e3ff3348
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment