From: Patrick G. <svn...@pl...> - 2010-07-06 14:57:24
|
Author: do3cc Date: Tue Jul 6 14:57:15 2010 New Revision: 37671 Modified: plone.formwidget.autocomplete/branches/do3cc_issue135/plone/formwidget/autocomplete/widget.py Log: Setting MatchCase parameter That way, search queries are not automatically lower cased Modified: plone.formwidget.autocomplete/branches/do3cc_issue135/plone/formwidget/autocomplete/widget.py ============================================================================== --- plone.formwidget.autocomplete/branches/do3cc_issue135/plone/formwidget/autocomplete/widget.py (original) +++ plone.formwidget.autocomplete/branches/do3cc_issue135/plone/formwidget/autocomplete/widget.py Tue Jul 6 14:57:15 2010 @@ -75,6 +75,7 @@ minChars = 2 maxResults = 10 mustMatch = True + matchCase = True matchContains = True formatItem = 'function(row, idx, count, value) { return row[1]; }' formatResult = 'function(row, idx, count) { return ""; }' @@ -106,6 +107,7 @@ minChars: %(minChars)d, max: %(maxResults)d, mustMatch: %(mustMatch)s, + matchCase: %(matchCase)s, matchContains: %(matchContains)s, formatItem: %(formatItem)s, formatResult: %(formatResult)s @@ -146,6 +148,7 @@ minChars=self.minChars, maxResults=self.maxResults, mustMatch=str(self.mustMatch).lower(), + matchCase=str(self.matchCase).lower(), matchContains=str(self.matchContains).lower(), formatItem=self.formatItem, formatResult=self.formatResult, |