Commit 9f75f698 authored by Bartek Górny's avatar Bartek Górny

fixed generation of where_expression from date arguments

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11588 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fc703a29
...@@ -123,13 +123,13 @@ mt=kw.get(\'modification_to\')\n ...@@ -123,13 +123,13 @@ mt=kw.get(\'modification_to\')\n
\n \n
wheres=[]\n wheres=[]\n
if cf:\n if cf:\n
wheres.append(\'creation_date>"\'+str(cf)+\'"\')\n wheres.append(\'creation_date>"\'+cf.strftime(\'%Y-%m-%d\')+\'"\')\n
if ct:\n if ct:\n
wheres.append(\'creation_date<"\'+str(ct)+\'"\')\n wheres.append(\'creation_date<"\'+cf.strftime(\'%Y-%m-%d\')+\'"\')\n
if mf:\n if mf:\n
wheres.append(\'modification_date>"\'+str(mf)+\'"\')\n wheres.append(\'modification_date>"\'+cf.strftime(\'%Y-%m-%d\')+\'"\')\n
if mt:\n if mt:\n
wheres.append(\'modification_date<"\'+str(mt)+\'"\')\n wheres.append(\'modification_date<"\'+cf.strftime(\'%Y-%m-%d\')+\'"\')\n
if wheres!=[]:\n if wheres!=[]:\n
kw[\'where_expression\']=\' AND \'.join(wheres)\n kw[\'where_expression\']=\' AND \'.join(wheres)\n
\n \n
......
371 372
\ No newline at end of file \ No newline at end of file
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