Commit 19284d4c authored by Julien Muchembled's avatar Julien Muchembled

GroupPresencePeriod_setPolishHolidayExceptions: fix default value of 'year' parameter

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41525 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9029e352
......@@ -55,7 +55,8 @@
on context Group Calendar Period.\n
Year defaults to current year.\n
"""\n
\n
if year is None:\n
year = DateTime().year()\n
part_holiday_list = [\'01-01\',\'05-01\',\'05-03\',\'08-15\',\'11-01\',\'11-11\',\'12-25\',\'12-26\']\n
holiday_list = [\'-\'.join((str(year),holiday)) for holiday in part_holiday_list]\n
\n
......@@ -67,7 +68,7 @@ for day in holiday_list:\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>year = DateTime().year()</string> </value>
<value> <string>year=None</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
37
\ No newline at end of file
38
\ 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