Ignore:
Timestamp:
Dec 21, 2016, 3:47:38 PM (3 years ago)
Author:
Juanma
Message:

wip on yml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-store/trunk/fuentes/lliurex-appstore.install/usr/bin/plugins/searchManager.py

    r3099 r3144  
    11import locale
     2import gi
     3gi.require_version('AppStreamGlib', '1.0')
     4from gi.repository import AppStreamGlib as appstream
    25
    36class searchmanager:
     
    2932
    3033        def execute_action(self,appstreamStore,action,tokens):
     34                if len(tokens.split(' '))>1 or action=='list':
     35                        self._debug("Tokenizing search items")
     36                        tokens=appstream.utils_search_tokenize(tokens)
     37                else:
     38                        tokens=[tokens]
    3139                self.store=appstreamStore
    3240                if action=='list':
Note: See TracChangeset for help on using the changeset viewer.