comparison frontends/src/bridge/DBus.py @ 1586:42285d993e68

bridge, core(params): removed obsolete methods: - getParams and getParamsForCategory are removed from bridge: XMLUI is now used in place of the old params XML - getParamsForCategory has also been removed internaly, as it is now unused, getParams is still used to construct the XMLUI
author Goffi <goffi@goffi.org>
date Sat, 14 Nov 2015 19:18:07 +0100
parents 7d7e57a84792
children 698d6755d62a
comparison
equal deleted inserted replaced
1585:846a39900fa6 1586:42285d993e68
365 kwargs['timeout'] = const_TIMEOUT 365 kwargs['timeout'] = const_TIMEOUT
366 kwargs['reply_handler'] = callback 366 kwargs['reply_handler'] = callback
367 kwargs['error_handler'] = error_handler 367 kwargs['error_handler'] = error_handler
368 return unicode(self.db_core_iface.getParamA(name, category, attribute, profile_key, **kwargs)) 368 return unicode(self.db_core_iface.getParamA(name, category, attribute, profile_key, **kwargs))
369 369
370 def getParams(self, security_limit=-1, app='', profile_key="@DEFAULT@", callback=None, errback=None):
371 if callback is None:
372 error_handler = None
373 else:
374 if errback is None:
375 errback = log.error
376 error_handler = lambda err:errback(dbus_to_bridge_exception(err))
377 return unicode(self.db_core_iface.getParams(security_limit, app, profile_key, timeout=const_TIMEOUT, reply_handler=callback, error_handler=error_handler))
378
379 def getParamsCategories(self, callback=None, errback=None): 370 def getParamsCategories(self, callback=None, errback=None):
380 if callback is None: 371 if callback is None:
381 error_handler = None 372 error_handler = None
382 else: 373 else:
383 if errback is None: 374 if errback is None:
388 kwargs['timeout'] = const_TIMEOUT 379 kwargs['timeout'] = const_TIMEOUT
389 kwargs['reply_handler'] = callback 380 kwargs['reply_handler'] = callback
390 kwargs['error_handler'] = error_handler 381 kwargs['error_handler'] = error_handler
391 return self.db_core_iface.getParamsCategories(**kwargs) 382 return self.db_core_iface.getParamsCategories(**kwargs)
392 383
393 def getParamsForCategory(self, category, security_limit=-1, app='', profile_key="@DEFAULT@", callback=None, errback=None):
394 if callback is None:
395 error_handler = None
396 else:
397 if errback is None:
398 errback = log.error
399 error_handler = lambda err:errback(dbus_to_bridge_exception(err))
400 return unicode(self.db_core_iface.getParamsForCategory(category, security_limit, app, profile_key, timeout=const_TIMEOUT, reply_handler=callback, error_handler=error_handler))
401
402 def getParamsUI(self, security_limit=-1, app='', profile_key="@DEFAULT@", callback=None, errback=None): 384 def getParamsUI(self, security_limit=-1, app='', profile_key="@DEFAULT@", callback=None, errback=None):
403 if callback is None: 385 if callback is None:
404 error_handler = None 386 error_handler = None
405 else: 387 else:
406 if errback is None: 388 if errback is None: