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
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
def from_threshold(self, threshold): deprecated("from_threshold() deprecated, use threshold().") self.activation = threshold self._setup() return
def as_threshold(self): deprecated("as_threshold() deprecated, use threshold().") return self.activation
def __init__(self, *args, **kw): from mpx.lib import deprecated PeriodicDeltaColumn.__init__(self, *args, **kw) deprecated("Update configuration to use the MeterMailColumnDecorator.") return
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()
def as_deadband(self): deprecated("as_deadband() deprecated, use deadband().") return (self.activation - self.deactivation)
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()
def isEmpty(self): from mpx.lib import deprecated deprecated("Use standard Python comparison.") return not self.__nonzero__()
def __init__(self, *args): deprecated("FTP and sFTP transporters should now be " "imported from mpx.service.data.ftptransport package") super(FTPTransporter, self).__init__(*args)
def MeterMailDecorator(): from mpx.lib import deprecated deprecated("Update configuration to use the MeterMailColumnDecorator.") return MeterMailColumnDecorator()
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")
def __init__(self, *args): deprecated('FTP and sFTP transporters should now be ' 'imported from mpx.service.data.ftptransport package') super(FTPTransporter, self).__init__(*args)
def from_deadband(self, deadband): deprecated("from_deadband() deprecated, use deadband().") self.deactivation = (self.activation - deadband) return
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 *
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 *
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()
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()
def send_to_file_handler(self, request): deprecated('Use request.send_to_handler(skip=self) instead') return self._file_request_handler.handle_request(request)
def send_to_file_handler(self,request): deprecated('Use request.send_to_handler(skip=self) instead') return self._file_request_handler.handle_request(request)
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")