From 0850e43a8ab107253872f84890eebc43c46c9347 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Sun, 7 Nov 2010 03:33:14 +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/content/list_pending_contents.pt | 2 +- skins/custom_content/topic_view.pt | 2 +- skins/custom_generic/folder_contents.py | 2 +- skins/generic/search_results_template.pt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/skins/content/list_pending_contents.pt b/skins/content/list_pending_contents.pt index 04ea27f..2c0ae52 100644 --- a/skins/content/list_pending_contents.pt +++ b/skins/content/list_pending_contents.pt @@ -19,7 +19,7 @@ arrow python:test(sorted_dir=='up', 'arrowUp.gif', 'arrowDown.gif'); sortedItems python: here.sort_folder_contents(items, sorted_field, sorted_dir); Batch python:modules['Products.Plinn'].Batch; - batch python:Batch(sortedItems, 50, request.get('b_start', 0), orphan=0)"> + batch python:Batch(sortedItems, here.default_batch_size, request.get('b_start', 0), orphan=0)">

Pending documents

batch navigation
diff --git a/skins/custom_content/topic_view.pt b/skins/custom_content/topic_view.pt index 495b40c..0e9a91b 100755 --- a/skins/custom_content/topic_view.pt +++ b/skins/custom_content/topic_view.pt @@ -20,7 +20,7 @@ b_start string:0;b_start request/b_start | b_start; results here/queryCatalog; Batch python:modules['Products.Plinn'].Batch; - global batch python:Batch(results, 20, int(b_start), orphan=1)" class="listing" cellspacing="0"> + global batch python:Batch(results, here.default_batch_size, int(b_start), orphan=1)" class="listing" cellspacing="0"> diff --git a/skins/custom_generic/folder_contents.py b/skins/custom_generic/folder_contents.py index 1735b4d..26fa044 100644 --- a/skins/custom_generic/folder_contents.py +++ b/skins/custom_generic/folder_contents.py @@ -174,7 +174,7 @@ items = context.listNearestFolderContents(contentFilter=filter) sort_dir = reverse and 'desc' or 'asc' sortFunc = key in ['Type', 'title_or_id'] and 'nocase' or 'cmp' items = sequence.sort( items, ((key, sortFunc, sort_dir),) ) -batch_obj = Batch(items, 20, b_start, orphan=0, quantumleap=1) +batch_obj = Batch(items, context.default_batch_size, b_start, orphan=0, quantumleap=1) items = [] i = 1 display_delete_button = False diff --git a/skins/generic/search_results_template.pt b/skins/generic/search_results_template.pt index 9532dc4..006a2bd 100644 --- a/skins/generic/search_results_template.pt +++ b/skins/generic/search_results_template.pt @@ -11,7 +11,7 @@ stext request/SearchableText|nothing; resultsLength options/resultsLength; Batch python:modules['Products.Plinn'].Batch; - batch python:Batch(results, 20, b_start, orphan=1, quantumleap=1); + batch python:Batch(results, here.default_batch_size, b_start, orphan=1, quantumleap=1); mch nocall:options/makeColumnHeader">

Search Results

-- 2.20.1
batch navigation