From f741aec4647e8df9771660743008ea13387cbe86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Pin?= Date: Sun, 7 Nov 2010 03:34:55 +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/getPhotosInfos.py | 2 +- skins/lightbox_view.py | 2 +- skins/selection_view.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/skins/getPhotosInfos.py b/skins/getPhotosInfos.py index 00cd295..1679c40 100755 --- a/skins/getPhotosInfos.py +++ b/skins/getPhotosInfos.py @@ -22,7 +22,7 @@ if mtool.checkPermission(ReviewPortalContent, context) : req = context.REQUEST pho_start = req.get('pho_start', 0) batch = Batch(portfolio.listNearestFolderContents(contentFilter={'portal_type' : ['Photo']}, sorted=True), - 50, pho_start, orphan=5, quantumleap=1, b_start_str='pho_start') + context.default_batch_size, pho_start, orphan=5, quantumleap=1, b_start_str='pho_start') infos = [] diff --git a/skins/lightbox_view.py b/skins/lightbox_view.py index c459206..562c115 100755 --- a/skins/lightbox_view.py +++ b/skins/lightbox_view.py @@ -33,7 +33,7 @@ else : start = req.get('b_start', 0) brains = [uidh.getBrain(uid) for uid in context.uids] -batch = Batch(brains, 20, start, orphan=1, quantumleap=1) +batch = Batch(brains, context.default_batch_size, start, orphan=1, quantumleap=1) hereUrl = context.absolute_url() cart = sd.get('cart', None) diff --git a/skins/selection_view.py b/skins/selection_view.py index 8f86965..ecde5d9 100755 --- a/skins/selection_view.py +++ b/skins/selection_view.py @@ -29,7 +29,7 @@ else : start = req.get('b_start', 0) brains = [uidh.getBrain(uid) for uid in selection] -batch = Batch(brains, 20, start, orphan=1, quantumleap=1)#, b_start_str='pho_start') +batch = Batch(brains, context.default_batch_size, start, orphan=1, quantumleap=1)#, b_start_str='pho_start') cart = req.SESSION.get('cart', None) infos = [] -- 2.20.1