From dc2d148d3af5ba8e57c33106d15ddb2fb88c2d46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 21 Nov 2011 18:28:28 +0100 Subject: [PATCH] handle sort_on key --- tabellio/searchform/form.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tabellio/searchform/form.py b/tabellio/searchform/form.py index dba6855..3331583 100644 --- a/tabellio/searchform/form.py +++ b/tabellio/searchform/form.py @@ -541,6 +541,10 @@ class IGlobalSearchForm(interface.Interface): value_type=schema.Choice(required=False, source=possible_topics)); + sort_on = schema.Choice(title=_(u'Sort By'), required=False, + default=_(u'Type'), + values=[_(u'Type'), _(u'Number'), _(u'Session')]) + class GlobalSearchForm(form.Form): fields = field.Fields(IGlobalSearchForm)