added the imports need to keywordsuggest plugin and autocompleteuser plugin (from collections import Counter, import fnmatch). removed the return statement inside if statement (if keywords are empty ) in keywordsuggest plugin, ITemplateStreamFilter method filter_stream. This will show bootstrap tagsinput when there is no keywords
About the previous commit. I added autocompleteuser plugin and keywordsuggest plugin. It will add suggestion in ticket page user, cc and keywords field. (keyword field will change to bootsrap tagsinput <http://timschlechter.github.io/bootstrap-tagsinput/examples/>) in query page added to user and cc fields On Mon, Jun 2, 2014 at 8:27 PM, <[email protected]> wrote: > Author: thimal > Date: Mon Jun 2 14:57:04 2014 > New Revision: 1599232 > > URL: http://svn.apache.org/r1599232 > Log: > imports for theme.py related to the autousercomplete plugin and > keywordsuggest plugin > > Modified: > > bloodhound/bep_0013_dynamic_clientside_features/bloodhound_theme/bhtheme/theme.py > > Modified: > bloodhound/bep_0013_dynamic_clientside_features/bloodhound_theme/bhtheme/theme.py > URL: > http://svn.apache.org/viewvc/bloodhound/bep_0013_dynamic_clientside_features/bloodhound_theme/bhtheme/theme.py?rev=1599232&r1=1599231&r2=1599232&view=diff > > ============================================================================== > --- > bloodhound/bep_0013_dynamic_clientside_features/bloodhound_theme/bhtheme/theme.py > (original) > +++ > bloodhound/bep_0013_dynamic_clientside_features/bloodhound_theme/bhtheme/theme.py > Mon Jun 2 14:57:04 2014 > @@ -19,8 +19,12 @@ > > import sys > > +from collections import Counter > + > +import fnmatch > + > from genshi.builder import tag > -from genshi.core import TEXT > +from genshi.core import TEXT, Markup > from genshi.filters.transform import Transformer > from genshi.output import DocType > > @@ -887,7 +891,6 @@ class KeywordSuggestModule(Component): > if not keywords: > self.log.debug(""" > No keywords found. KeywordSuggestPlugin is disabled.""") > - return stream > > js = """jQuery(document).ready(function($) { > var keywords = %(keywords)s > > > -- *Thimal Kempitiya <http://www.facebook.com/thimalk> UndergraduateDepartment of Computer Science and Engineering University of Moratuwa.*
