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
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
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()
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