/[papo]/gnue/common/src/commdrivers/xmlrpc/ServerAdapter.py
ViewVC logotype

Diff of /gnue/common/src/commdrivers/xmlrpc/ServerAdapter.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by styxman, Fri Nov 15 15:32:55 2002 UTC revision 1.4.2.1 by anthonyl, Tue Mar 4 22:09:33 2003 UTC
# Line 16  Line 16 
16  # write to the Free Software Foundation, Inc., 59 Temple Place  # write to the Free Software Foundation, Inc., 59 Temple Place
17  # - Suite 330, Boston, MA 02111-1307, USA.  # - Suite 330, Boston, MA 02111-1307, USA.
18  #  #
19  # Copyright 2001 Free Software Foundation  # Copyright 2001-2003 Free Software Foundation
20  #  #
21  # FILE:  # FILE:
22  # xmlrpc/ServerAdapter.py  # xmlrpc/ServerAdapter.py
# Line 57  try: Line 57  try:
57    import xmlrpc    import xmlrpc
58    
59  except ImportError:  except ImportError:
60    raise GComm.AdapterInitializationError, \    tmsg = _("\nUnable to load xmlrpc.  To use the XML-RPC interface, \n") \
61          _("\nUnable to load xmlrpc.  To use the XML-RPC interface, \n") \           + _("please install xmlrpc from:\n") \
62        + _("please install xmlrpc from:\n") \           + "    http://sourceforge.net/projects/py-xmlrpc" \
63        + "    http://sourceforge.net/projects/py-xmlrpc" \           + _("the appropriate DEBIAN package is python-xmlrpc")
64        + _("the appropriate DEBIAN package is python-xmlrpc")    raise GComm.AdapterInitializationError, tmsg
65    
66    
67  # Mapping from GRPC's datatype to XML-RPC datatypes  # Mapping from GRPC's datatype to XML-RPC datatypes
# Line 88  class ServerAdapter(ObjectEnabler.Object Line 88  class ServerAdapter(ObjectEnabler.Object
88      try:      try:
89        self._port = params['port']        self._port = params['port']
90      except KeyError:      except KeyError:
91        raise GComm.AdapterConfigurationError,\        tmsg = _('Required parameter "port" not supplied')
92              _('Required parameter "port" not supplied')        raise GComm.AdapterConfigurationError, tmsg
93    
94      # Create Subserver      # Create Subserver
95      self.server=XMLRPC_Server()      self.server=XMLRPC_Server()

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.4.2.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26