예제 #1
0
	def clearCacheSearchPhrase(self, table, name):
		control.hide()
		yes = control.yesnoDialog(control.lang(32056), '', '')
		if not yes:
			return
		try:
			from resources.lib.modules import cache
			cache.cache_clear_SearchPhrase(table, name)
			control.notification(title='default', message='Search Phrase Successfully Cleared!', icon='default', sound=(control.setting('notification.sound') == 'true'))
		except:
			log_utils.error()
			pass
예제 #2
0
	def clearCacheSearchPhrase(self, table, name):
		control.idle()
		yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '')

		if not yes:
			return

		try:
			from resources.lib.modules import cache
			cache.cache_clear_SearchPhrase(table, name)
			control.notification(title = 'default', message = 'Search Phrase Successfully Cleared!', icon = 'default', sound = notificationSound)
		except:
			log_utils.error()
			pass
예제 #3
0
	def clearCacheSearchPhrase(self, table, name):
		control.hide()
		if not control.yesnoDialog(control.lang(32056), '', ''): return
		try:
			from resources.lib.modules import cache
			if cache.cache_clear_SearchPhrase(table, name):
				control.notification(message=32094)
			else: control.notification(message=33586)
		except:
			log_utils.error()
예제 #4
0
    def clearCacheSearchPhrase(self, table, name):
        log_utils.log('table = %s' % str(table), __name__, log_utils.LOGDEBUG)
        log_utils.log('name = %s' % str(name), __name__, log_utils.LOGDEBUG)
        control.idle()
        yes = control.yesnoDialog(control.lang(32056).encode('utf-8'), '', '')

        if not yes:
            return

        try:
            from resources.lib.modules import cache
            cache.cache_clear_SearchPhrase(table, name)
            control.notification(title='default',
                                 message='Search Phrase Successfully Cleared!',
                                 icon='default',
                                 sound=notificationSound)
        except:
            import traceback
            traceback.print_exc()
            pass