Commit 25df67fb authored by Ivan Tyagov's avatar Ivan Tyagov

Add listbox setting for page navigation mode. Update coment

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37359 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 06144d90
...@@ -419,6 +419,12 @@ class ListBoxWidget(Widget.Widget): ...@@ -419,6 +419,12 @@ class ListBoxWidget(Widget.Widget):
required=0) required=0)
property_names.append('full_text_search_key_script') 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', list_action = fields.StringField('list_action',
title='List Action', title='List Action',
...@@ -969,11 +975,17 @@ class ListBoxRenderer: ...@@ -969,11 +975,17 @@ class ListBoxRenderer:
getFullTextSearchKey = lazyMethod(getFullTextSearchKey) getFullTextSearchKey = lazyMethod(getFullTextSearchKey)
def getFullTextSearchKeyScript(self): 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') return self.field.get_value('full_text_search_key_script')
getFullTextSearchKeyScript = lazyMethod(getFullTextSearchKeyScript) 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): def getSearchColumnIdSet(self):
"""Return the set of the ids of the search columns. Fall back to the catalog schema, if not defined. """Return the set of the ids of the search columns. Fall back to the catalog schema, if not defined.
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment