Utilisation de la taille du batch par défaut. master
authorBenoît Pin <benoit.pin@gmail.com>
Sun, 7 Nov 2010 02:31:56 +0000 (03:31 +0100)
committerBenoît Pin <benoit.pin@gmail.com>
Sun, 7 Nov 2010 02:31:56 +0000 (03:31 +0100)
skins/my_orders.py
skins/order_list.py

index 5d3e6da..e13af90 100755 (executable)
@@ -57,7 +57,7 @@ def beforeGetItem(item) :
        info['state'] = wtool.getInfoFor(item, 'review_state', wf_id='order_workflow')
        return info
        
        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 = [
 options['orders'] = orders
 
 breadcrumbs = [
index 37a0e4c..2635e58 100755 (executable)
@@ -89,7 +89,7 @@ def beforeGetItem(item) :
                info['customer'] = item.Creator()
        return info
        
                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)
 options['orders'] = orders
 
 return context.order_list_template(**options)