From 88f9f2dde90223a13f97e2787e342b389457064e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Wed, 9 Jul 2014 07:54:33 +0200 Subject: [PATCH] =?utf8?q?Formulaire=20http=20pleinement=20fonctionnel=20(?= =?utf8?q?reste=20=C3=A0=20impl=C3=A9menter=20le=20changement=20de=20sens)?= =?utf8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/getPhotosInfos.py | 7 ++++++- skins/portfolio_edit_form.py | 2 +- skins/portfolio_view.pt | 12 ++++++++---- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/skins/getPhotosInfos.py b/skins/getPhotosInfos.py index 985528e..15a1713 100755 --- a/skins/getPhotosInfos.py +++ b/skins/getPhotosInfos.py @@ -69,4 +69,9 @@ for p in batch : } infos.append(d) -return {'infos':infos, 'batch':batch, 'features':features} +return {'infos':infos, + 'batch':batch, + 'features':features, + 'sorting' : {'sort_on' : sort_on, + 'sort_order' : sort_order} + } diff --git a/skins/portfolio_edit_form.py b/skins/portfolio_edit_form.py index ad661d2..e6b6657 100644 --- a/skins/portfolio_edit_form.py +++ b/skins/portfolio_edit_form.py @@ -28,7 +28,7 @@ if fg('delete.x') or form.has_key('delete') : else : return '%s' % msg if fg('set_sorting') : - context.setDefaultSorting(fg('sorting'), False) + context.setDefaultSorting(fg('sort_on'), False) if not fg('ajax') : return context.setRedirect(context, 'object/view') else : diff --git a/skins/portfolio_view.pt b/skins/portfolio_view.pt index 14bd91c..06de5c3 100644 --- a/skins/portfolio_view.pt +++ b/skins/portfolio_view.pt @@ -72,10 +72,14 @@ tal:condition="python:mtool.checkPermission(ModifyPortalContent, here)"> sorting: - + + +