comparison frontends/src/bridge/dbus_bridge.py @ 2113:9c861d07b5b6

core: added sessionGetInfos bridge method to retrieve various data on current profile session + client.started keep start time
author Goffi <goffi@goffi.org>
date Thu, 05 Jan 2017 22:22:13 +0100
parents f413bfc24458
children 2f264f3df280
comparison
equal deleted inserted replaced
2112:877d0a2d0d86 2113:9c861d07b5b6
642 kwargs['timeout'] = const_TIMEOUT 642 kwargs['timeout'] = const_TIMEOUT
643 kwargs['reply_handler'] = callback 643 kwargs['reply_handler'] = callback
644 kwargs['error_handler'] = error_handler 644 kwargs['error_handler'] = error_handler
645 return self.db_core_iface.saveParamsTemplate(filename, **kwargs) 645 return self.db_core_iface.saveParamsTemplate(filename, **kwargs)
646 646
647 def sessionInfosGet(self, profile_key, callback=None, errback=None):
648 if callback is None:
649 error_handler = None
650 else:
651 if errback is None:
652 errback = log.error
653 error_handler = lambda err:errback(dbus_to_bridge_exception(err))
654 return self.db_core_iface.sessionInfosGet(profile_key, timeout=const_TIMEOUT, reply_handler=callback, error_handler=error_handler)
655
647 def setParam(self, name, value, category, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None): 656 def setParam(self, name, value, category, security_limit=-1, profile_key="@DEFAULT@", callback=None, errback=None):
648 if callback is None: 657 if callback is None:
649 error_handler = None 658 error_handler = None
650 else: 659 else:
651 if errback is None: 660 if errback is None: