Example #1
0
def factory():
    from mpx.lib import deprecated
    deprecated("mpx.ion.host.pc.factory() is deprecated,"
               " please update the code/configuration to use"
               " mpx.ion.host.Unknown(), with the correct"
               " 'port_map' configuration.")
    host = _Unknown()
    host.configure({'port_map':{'com1':'/dev/ttyS0'},
                    'eth_map':{'eth0':'eth0'},
                    })
    return host
Example #2
0
 def new_node_tree(self):
     import mpx.service
     import mpx.ion.host
     import mpx.lib.node
     services = mpx.service._Anchor()
     services.configure({'name':'services','parent':'/'})
     host = mpx.ion.host.Unknown()
     host.configure({'name':'interfaces','parent':'/'})
     virtuals = mpx.lib.node.CompositeNode()
     virtuals.configure({'name':'virtuals','parent':host})
     try:
         aliases = mpx.lib.node.Aliases()
     except:
         from mpx.lib import deprecated
         deprecated("Using deprecated Aliases factory:"
                    "  mpx.service.aliases.Aliases()")
         import mpx.service.aliases
         aliases = mpx.service.aliases.Aliases()
     aliases.configure({'name':'aliases','parent':'/'})
     return
Example #3
0
 def from_threshold(self, threshold):
     deprecated("from_threshold() deprecated, use threshold().")
     self.activation = threshold
     self._setup()
     return
Example #4
0
 def as_threshold(self):
     deprecated("as_threshold() deprecated, use threshold().")
     return self.activation
Example #5
0
 def as_threshold(self):
     deprecated("as_threshold() deprecated, use threshold().")
     return self.activation
Example #6
0
 def __init__(self, *args, **kw):
     from mpx.lib import deprecated
     PeriodicDeltaColumn.__init__(self, *args, **kw)
     deprecated("Update configuration to use the MeterMailColumnDecorator.")
     return
Example #7
0
def factory():
    from mpx.lib import deprecated
    deprecated("mpx.ion.host.unknown.factory() is deprecated,"
               " please update the code/configuration to use"
               " mpx.ion.host.Unknown().")
    return Unknown()
Example #8
0
 def as_deadband(self):
     deprecated("as_deadband() deprecated, use deadband().")
     return (self.activation - self.deactivation)
Example #9
0
def factory():
    from mpx.lib.node import Alias
    from mpx.lib import deprecated
    deprecated("mpx.service.alias.factory has been deprecated,"
               " please use mpx.lib.node.Alias")
    return Alias()
Example #10
0
 def isEmpty(self):
     from mpx.lib import deprecated
     deprecated("Use standard Python comparison.")
     return not self.__nonzero__()
Example #11
0
 def __init__(self, *args, **kw):
     from mpx.lib import deprecated
     PeriodicDeltaColumn.__init__(self, *args, **kw)
     deprecated("Update configuration to use the MeterMailColumnDecorator.")
     return
Example #12
0
 def __init__(self, *args):
     deprecated("FTP and sFTP transporters should now be " "imported from mpx.service.data.ftptransport package")
     super(FTPTransporter, self).__init__(*args)
Example #13
0
def MeterMailDecorator():
    from mpx.lib import deprecated
    deprecated("Update configuration to use the MeterMailColumnDecorator.")
    return MeterMailColumnDecorator()
Example #14
0
as published by the Free Software Foundation; either version 2         
of the License, or (at your option) any later version.         
    
This program is distributed in the hope that it will be useful,         
but WITHOUT ANY WARRANTY; without even the implied warranty of         
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         
GNU General Public License for more details.         
    
You should have received a copy of the GNU General Public License         
along with this program; if not, write to:         
The Free Software Foundation, Inc.         
59 Temple Place - Suite 330         
Boston, MA  02111-1307, USA.         
    
As a special exception, if other files instantiate classes, templates  
or use macros or inline functions from this project, or you compile         
this file and link it with other works to produce a work based         
on this file, this file does not by itself cause the resulting         
work to be covered by the GNU General Public License. However         
the source code for this file must still be made available in         
accordance with section (3) of the GNU General Public License.         
    
This exception does not invalidate any other reasons why a work         
based on this file might be covered by the GNU General Public         
License.
"""
from mpx_test import DefaultTestFixture

from mpx.lib import deprecated
deprecated("testing.fixtures.default has been moved to mpx_test")
Example #15
0
 def __init__(self, *args):
     deprecated('FTP and sFTP transporters should now be '
                'imported from mpx.service.data.ftptransport package')
     super(FTPTransporter, self).__init__(*args)
Example #16
0
 def from_deadband(self, deadband):
     deprecated("from_deadband() deprecated, use deadband().")
     self.deactivation = (self.activation - deadband)
     return
Example #17
0
    
This program is distributed in the hope that it will be useful,         
but WITHOUT ANY WARRANTY; without even the implied warranty of         
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         
GNU General Public License for more details.         
    
You should have received a copy of the GNU General Public License         
along with this program; if not, write to:         
The Free Software Foundation, Inc.         
59 Temple Place - Suite 330         
Boston, MA  02111-1307, USA.         
    
As a special exception, if other files instantiate classes, templates  
or use macros or inline functions from this project, or you compile         
this file and link it with other works to produce a work based         
on this file, this file does not by itself cause the resulting         
work to be covered by the GNU General Public License. However         
the source code for this file must still be made available in         
accordance with section (3) of the GNU General Public License.         
    
This exception does not invalidate any other reasons why a work         
based on this file might be covered by the GNU General Public         
License.
"""
from mpx.lib import deprecated

deprecated(
    "Update configuration to use mpx.service.data.metermail_nodes module.")

from mpx.service.data.metermail_nodes import *
Example #18
0
 def as_deadband(self):
     deprecated("as_deadband() deprecated, use deadband().")
     return (self.activation - self.deactivation)
Example #19
0
This program is distributed in the hope that it will be useful,         
but WITHOUT ANY WARRANTY; without even the implied warranty of         
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         
GNU General Public License for more details.         
    
You should have received a copy of the GNU General Public License         
along with this program; if not, write to:         
The Free Software Foundation, Inc.         
59 Temple Place - Suite 330         
Boston, MA  02111-1307, USA.         
    
As a special exception, if other files instantiate classes, templates  
or use macros or inline functions from this project, or you compile         
this file and link it with other works to produce a work based         
on this file, this file does not by itself cause the resulting         
work to be covered by the GNU General Public License. However         
the source code for this file must still be made available in         
accordance with section (3) of the GNU General Public License.         
    
This exception does not invalidate any other reasons why a work         
based on this file might be covered by the GNU General Public         
License.
"""
from mpx.lib import deprecated

deprecated(
    "Update configuration to use mpx.service.data.metermail_formatter module."
    )

from mpx.service.data.metermail_formatter import *
Example #20
0
Boston, MA  02111-1307, USA.         
    
As a special exception, if other files instantiate classes, templates  
or use macros or inline functions from this project, or you compile         
this file and link it with other works to produce a work based         
on this file, this file does not by itself cause the resulting         
work to be covered by the GNU General Public License. However         
the source code for this file must still be made available in         
accordance with section (3) of the GNU General Public License.         
    
This exception does not invalidate any other reasons why a work         
based on this file might be covered by the GNU General Public         
License.
"""
#!/usr/bin/env python-mpx

from mpx_test import test

from mpx.lib import deprecated
deprecated("testing.test_manager.test has been moved to mpx_test.test")

if __name__ == "__main__":
    deprecated("testing/test_manager has been moved to tools/unittester")
    import sys
    from mpx_test import destroy_testing_directories
    from tools.unittester import MAIN
    try:
        result = MAIN(sys.argv)
    finally:
        destroy_testing_directories()
Example #21
0
def factory():
    from mpx.lib.node import Aliases
    from mpx.lib import deprecated
    deprecated("mpx.service.aliases.factory has been deprecated,"
               " please use mpx.lib.node.Aliases")
    return Aliases()
Example #22
0
 def send_to_file_handler(self, request):
     deprecated('Use request.send_to_handler(skip=self) instead')
     return self._file_request_handler.handle_request(request)
Example #23
0
 def from_deadband(self, deadband):
     deprecated("from_deadband() deprecated, use deadband().")
     self.deactivation = (self.activation - deadband)
     return
Example #24
0
 def send_to_file_handler(self,request):
     deprecated('Use request.send_to_handler(skip=self) instead')
     return self._file_request_handler.handle_request(request)
Example #25
0
def MeterMailDecorator():
    from mpx.lib import deprecated
    deprecated("Update configuration to use the MeterMailColumnDecorator.")
    return MeterMailColumnDecorator()
Example #26
0
as published by the Free Software Foundation; either version 2         
of the License, or (at your option) any later version.         
    
This program is distributed in the hope that it will be useful,         
but WITHOUT ANY WARRANTY; without even the implied warranty of         
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         
GNU General Public License for more details.         
    
You should have received a copy of the GNU General Public License         
along with this program; if not, write to:         
The Free Software Foundation, Inc.         
59 Temple Place - Suite 330         
Boston, MA  02111-1307, USA.         
    
As a special exception, if other files instantiate classes, templates  
or use macros or inline functions from this project, or you compile         
this file and link it with other works to produce a work based         
on this file, this file does not by itself cause the resulting         
work to be covered by the GNU General Public License. However         
the source code for this file must still be made available in         
accordance with section (3) of the GNU General Public License.         
    
This exception does not invalidate any other reasons why a work         
based on this file might be covered by the GNU General Public         
License.
"""
from mpx.lib.log.test import TestLogFixture
from mpx.lib import deprecated
deprecated("testing.fixtures.test_log_fixture has been moved to " +
           "mpx.lib.log.test")
Example #27
0
 def from_threshold(self, threshold):
     deprecated("from_threshold() deprecated, use threshold().")
     self.activation = threshold
     self._setup()
     return