connection
Package¶
connection
Module¶
-
openerp_proxy.connection.connection.
get_connector
(name)[source]¶ Return connector specified by it’s name
-
openerp_proxy.connection.connection.
get_connector_names
()[source]¶ Returns list of connector names registered in system
-
class
openerp_proxy.connection.connection.
ConnectorBase
(host, port, extra_args=None)[source]¶ Bases:
object
Base class for all connectors
Parameters: - host (str) – hostname to connect to
- port (int) – port to connect to
- extra_args (dict) – extra arguments for specific connector.
-
extra_args
¶ Connector extra arguments
-
get_service
(name)[source]¶ Returns service for specified name
Parameters: name – name of service Returns: specified service instance
-
host
¶ Connector host
-
port
¶ Connector port
jsonrpc
Module¶
-
class
openerp_proxy.connection.jsonrpc.
ConnectorJSONRPC
(*args, **kwargs)[source]¶ Bases:
openerp_proxy.connection.connection.ConnectorBase
JSON-RPC connector
- available extra arguments:
- ssl_verify: (optional) if True, the SSL cert will be verified.
-
class
openerp_proxy.connection.jsonrpc.
ConnectorJSONRPCS
(*args, **kwargs)[source]¶ Bases:
openerp_proxy.connection.jsonrpc.ConnectorJSONRPC
JSON-RPCS Connector
-
exception
openerp_proxy.connection.jsonrpc.
JSONRPCError
(message, code=None, data=None)[source]¶ Bases:
openerp_proxy.exceptions.ConnectorError
JSON-RPC error wrapper
-
data_debug
¶ Debug information got from Odoo server
Usualy traceback
-
data_message
¶ Error message got from Odoo server
-
xmlrpc
Module¶
-
class
openerp_proxy.connection.xmlrpc.
ConnectorXMLRPC
(host, port, extra_args=None)[source]¶ Bases:
openerp_proxy.connection.connection.ConnectorBase
XML-RPC connector
Note: extra_arguments may be same as parametrs of xmlrpclib.ServerProxy
-
class
openerp_proxy.connection.xmlrpc.
ConnectorXMLRPCS
(host, port, extra_args=None)[source]¶ Bases:
openerp_proxy.connection.xmlrpc.ConnectorXMLRPC
XML-RPCS Connector
Note: extra_arguments may be same as parametrs of xmlrpclib.ServerProxy
-
exception
openerp_proxy.connection.xmlrpc.
XMLRPCError
(fault_instance)[source]¶ Bases:
openerp_proxy.exceptions.ConnectorError
Exception raised on XMLRpc errors
Parameters: fault_instance (xmlrpclib.Fault) – exception raised by XMLRPC lib -
fault
¶ Return xmlrpclib.Fault instance related to this error
-