From: Benoît Pin Date: Sun, 7 Nov 2010 02:33:14 +0000 (+0100) Subject: Utilisation de la taille du batch par défaut. X-Git-Url: https://scm.cri.mines-paristech.fr/git/Plinn.git/commitdiff_plain/0850e43a8ab107253872f84890eebc43c46c9347?ds=inline Utilisation de la taille du batch par défaut. --- 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

batch navigation