Commit e24c56a0 authored by Rafael Monnerat's avatar Rafael Monnerat

Try to use Current Day for Axis (header columns) if axis_start/stop was not DateTime

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16277 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e61a5651
...@@ -86,6 +86,9 @@ new_zoom_level = zoom_level_index_list[current_zoom_level]\n ...@@ -86,6 +86,9 @@ new_zoom_level = zoom_level_index_list[current_zoom_level]\n
# 1 dictionary == 1 group\n # 1 dictionary == 1 group\n
# Optional value \'link\'is accept to create special link on secondary axis.\n # Optional value \'link\'is accept to create special link on secondary axis.\n
\n \n
if not isinstance(axis_start, DateTime):\n
axis_start, axis_stop = context.planning_validate_date_list(DateTime(), current_zoom_level)\n
\n
if isinstance(axis_start, DateTime):\n if isinstance(axis_start, DateTime):\n
# testing delimiter_type to apply (day, week, month, year)\n # testing delimiter_type to apply (day, week, month, year)\n
# from smallest type to biggest\n # from smallest type to biggest\n
...@@ -343,10 +346,10 @@ return [ ]\n ...@@ -343,10 +346,10 @@ return [ ]\n
<string>new_zoom_level</string> <string>new_zoom_level</string>
<string>isinstance</string> <string>isinstance</string>
<string>DateTime</string> <string>DateTime</string>
<string>_getiter_</string>
<string>type_list</string> <string>type_list</string>
<string>default_link_url</string> <string>default_link_url</string>
<string>good_type</string> <string>good_type</string>
<string>_getiter_</string>
<string>date_type</string> <string>date_type</string>
<string>float</string> <string>float</string>
<string>date_order</string> <string>date_order</string>
......
466 467
\ 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