[Erp5-report] r37359 ivan - /erp5/trunk/products/ERP5Form/ListBox.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 29 09:40:34 CEST 2010
Author: ivan
Date: Thu Jul 29 09:40:33 2010
New Revision: 37359
URL: http://svn.erp5.org?rev=37359&view=rev
Log:
Add listbox setting for page navigation mode. Update coment
Modified:
erp5/trunk/products/ERP5Form/ListBox.py
Modified: erp5/trunk/products/ERP5Form/ListBox.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/ListBox.py?rev=37359&r1=37358&r2=37359&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/ListBox.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/ListBox.py [utf8] Thu Jul 29 09:40:33 2010
@@ -419,6 +419,12 @@ class ListBoxWidget(Widget.Widget):
required=0)
property_names.append('full_text_search_key_script')
+ page_navigation_mode = fields.StringField('page_navigation_mode',
+ title="Page navigation mode",
+ description=("Page navigation mode like 'slider' - controls for 'next' / 'last' & 'previous' / 'first' or 'text' - direct page selections."),
+ default='slider',
+ required=0)
+ property_names.append('page_navigation_mode')
list_action = fields.StringField('list_action',
title='List Action',
@@ -969,11 +975,17 @@ class ListBoxRenderer:
getFullTextSearchKey = lazyMethod(getFullTextSearchKey)
def getFullTextSearchKeyScript(self):
- """Return the full text search key."""
+ """Return the full text search key script which is responsible for handling full text query."""
return self.field.get_value('full_text_search_key_script')
getFullTextSearchKeyScript = lazyMethod(getFullTextSearchKeyScript)
+ def getPageNavigationMode(self):
+ """Return the list box page navigation mode."""
+ return self.field.get_value('page_navigation_mode')
+
+ getPageNavigationMode = lazyMethod(getPageNavigationMode)
+
def getSearchColumnIdSet(self):
"""Return the set of the ids of the search columns. Fall back to the catalog schema, if not defined.
"""
More information about the Erp5-report
mailing list