示例#1
0
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
示例#2
0
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
示例#3
0
 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
示例#4
0
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()
示例#5
0
 def __init__(self, *args, **kw):
     _deprecated("mpx.lib.magnitude.Magnitude has been deprecated,"
                 " please use mpx.lib.magnitude.MagnitudeInterface")
     MagnitudeInterface.__init__(self, *args, **kw)
示例#6
0
 def _default_numeric_value(self):
     _deprecated("MagnitudeInterface._default_numeric_value() has been"
                 " deprecated, please MagnitudeInterface.as_magnitude().")
     return self.as_magnitude()
示例#7
0
 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
示例#8
0
 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
示例#9
0
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()
示例#10
0
 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