From: Benoît Pin Date: Sun, 7 Nov 2010 02:34:55 +0000 (+0100) Subject: Utilisation de la taille du batch par défaut. X-Git-Url: https://scm.cri.ensmp.fr/git/Portfolio.git/commitdiff_plain/f741aec4647e8df9771660743008ea13387cbe86?ds=sidebyside;hp=--cc Utilisation de la taille du batch par défaut. --- f741aec4647e8df9771660743008ea13387cbe86 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 = []