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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
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
Show 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):
...
@@ -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