Commit 02829816 authored by Aurel's avatar Aurel

get default value for listbox limit if no selection found

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28035 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0493ddd7
...@@ -74,8 +74,8 @@ node = context.getBaobabSource()\n ...@@ -74,8 +74,8 @@ node = context.getBaobabSource()\n
destination_payment = request.get(\'destination_payment\', None)\n destination_payment = request.get(\'destination_payment\', None)\n
\n \n
# retrieve listbox limit\n # retrieve listbox limit\n
nb_lines = int(kw.get(\'list_lines\'))\n nb_lines = int(kw.get(\'list_lines\', 20))\n
limit_start = int(kw.get(\'list_start\'))\n limit_start = int(kw.get(\'list_start\', 0))\n
limit = limit_start, nb_lines\n limit = limit_start, nb_lines\n
\n \n
simulation_state = None\n simulation_state = None\n
......
428 430
\ 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