From cbe68f8f47261f23ac01e9e039ae90de3d72606f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Sun, 7 Nov 2010 03:31:56 +0100 Subject: [PATCH] =?utf8?q?Utilisation=20de=20la=20taille=20du=20batch=20pa?= =?utf8?q?r=20d=C3=A9faut.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/my_orders.py | 2 +- skins/order_list.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/skins/my_orders.py b/skins/my_orders.py index 5d3e6da..e13af90 100755 --- a/skins/my_orders.py +++ b/skins/my_orders.py @@ -57,7 +57,7 @@ def beforeGetItem(item) : info['state'] = wtool.getInfoFor(item, 'review_state', wf_id='order_workflow') return info -orders = Batch(orders, 20, b_start, orphan=0, quantumleap=1, before_getitem=beforeGetItem) +orders = Batch(orders, context.default_batch_size, b_start, orphan=0, quantumleap=1, before_getitem=beforeGetItem) options['orders'] = orders breadcrumbs = [ diff --git a/skins/order_list.py b/skins/order_list.py index 37a0e4c..2635e58 100755 --- a/skins/order_list.py +++ b/skins/order_list.py @@ -89,7 +89,7 @@ def beforeGetItem(item) : info['customer'] = item.Creator() return info -orders = Batch(orders, 40, b_start, orphan=0, quantumleap=1, before_getitem=beforeGetItem) +orders = Batch(orders, context.default_batch_size, b_start, orphan=0, quantumleap=1, before_getitem=beforeGetItem) options['orders'] = orders return context.order_list_template(**options) -- 2.20.1