def all_logs_info(dir=None): # Deferred import because mpx.lib requires msglog hooks, which require this # packages Log object... from mpx.lib import deprecated as _deprecated _deprecated("all_logs_info() has been depricated, please use log_info() to" " get information on a specific log and log_names() to get the" " list of logs.") corrupt = [] names = log_names(corrupt) names.extend(corrupt) logs = [] for name in names: info = log_info(name) logs.append({'name': name, 'configuration': info.configuration()}) return logs
def all_logs_info(dir=None): # Deferred import because mpx.lib requires msglog hooks, which require this # packages Log object... from mpx.lib import deprecated as _deprecated _deprecated("all_logs_info() has been depricated, please use log_info() to" " get information on a specific log and log_names() to get the" " list of logs.") corrupt = [] names = log_names(corrupt) names.extend(corrupt) logs = [] for name in names: info = log_info(name) logs.append({'name':name, 'configuration':info.configuration()}) return logs
def __init__(self): _deprecated("The mpx.lib.driver.relay_driver.PeriodicRelayDriver " + "factory has been deprecated, please upgrade to use " + "mpx.lib.driver.PeriodicRelayDriver.") _PeriodicRelayDriver.__init__(self) return
def factory(): _deprecated("mpx.lib.user_definable.factory() has been deprecated," " please use mpx.lib.node.user_definable.factory().") from mpx.lib.node.user_definable import factory as _factory return _factory()
def __init__(self, *args, **kw): _deprecated("mpx.lib.magnitude.Magnitude has been deprecated," " please use mpx.lib.magnitude.MagnitudeInterface") MagnitudeInterface.__init__(self, *args, **kw)
def _default_numeric_value(self): _deprecated("MagnitudeInterface._default_numeric_value() has been" " deprecated, please MagnitudeInterface.as_magnitude().") return self.as_magnitude()
def __init__(self): _deprecated("The mpx.lib.translator.periodicdriver.PeriodicDriver " + "factory has been deprecated, please upgrade to use " + "mpx.lib.driver.PeriodicDriver.") _PeriodicDriver.__init__(self) return