示例#1
0
 def notify_server(self, *args, **kwargs):
     self._notifylock.acquire()
     if 'icon' in self.config:
         kwargs['icon'] = self.config['icon']
     result = notify.notify_server(self, *args, **kwargs)
     self._notifylock.release()
     return result
示例#2
0
文件: __init__.py 项目: jagleeso/calm
 def notify_server(self, *args, **kwargs):
     self._notifylock.acquire()
     if 'icon' in self.config:
         kwargs['icon'] = self.config['icon']
     result = notify.notify_server(self, *args, **kwargs)
     self._notifylock.release()
     return result
示例#3
0
 def notify_server_for_cmdproc(self, cmdproc, *args, **kwargs):
     kwargs['icon'] = self._cmdproc_config[cmdproc]['icon']
     return notify.notify_server(self, *args, **kwargs)
示例#4
0
 def notify_server(self, *args, **kwargs):
     kwargs['icon'] = self.config['icon']
     return notify.notify_server(self, *args, **kwargs)
示例#5
0
文件: __init__.py 项目: jagleeso/calm
 def notify_server_for_cmdproc(self, cmdproc, *args, **kwargs):
     kwargs['icon'] = self._cmdproc_config[cmdproc]['icon']
     return notify.notify_server(self, *args, **kwargs)
示例#6
0
文件: __init__.py 项目: jagleeso/calm
 def notify_server(self, *args, **kwargs):
     kwargs['icon'] = self.config['icon']
     return notify.notify_server(self, *args, **kwargs)