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
138
Merge Requests
138
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
9d7c437d
Commit
9d7c437d
authored
Mar 30, 2021
by
Aurel
Committed by
Arnaud Fontaine
Jan 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! sqlvar patche
parent
bfb8fc2a
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 @
9d7c437d
...
...
@@ -83,15 +83,14 @@ def SQLVar_render(self, md):
%
(
t
,
self
.
__name__
,
v
))
# Patched by yo. datetime is added.
valid_type
=
'int'
,
'float'
,
'string'
,
'nb'
,
'datetime'
valid_type
+=
tuple
(
map
(
'datetime(%s)'
.
__mod__
,
xrange
(
7
)))
new_valid_types
=
'int'
,
'float'
,
'string'
,
'nb'
,
'datetime'
new_valid_types
+=
tuple
(
map
(
'datetime(%s)'
.
__mod__
,
xrange
(
7
)))
try
:
# BBB
from
Shared.DC.ZRDB.sqlvar
import
valid_type
valid_type
=
valid_type
.
__contains__
sqlvar
.
valid_type
=
valid_type
sqlvar
.
valid_type
=
new_valid_types
.
__contains__
except
ImportError
:
sqlvar
.
valid_types
=
valid_type
sqlvar
.
valid_types
=
new_valid_types
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