MiscUtils.M2PickleRPC (version 1)
index
/home/groups/w/we/webware/htdocs/Webware-1.0.2/MiscUtils/M2PickleRPC.py

M2Crypto-enhanced transport for PickleRPC
 
This lets you use M2Crypto for SSL encryption.
 
Based on m2xmlrpclib.py which is
Copyright (c) 1999-2002 Ng Pheng Siong. All rights reserved.

 
Modules
       
M2Crypto.SSL
M2Crypto.httpslib
M2Crypto.m2urllib
sys

 
Classes
       
MiscUtils.PickleRPC.Transport(MiscUtils.PickleRPC.SafeUnpickler)
M2Transport

 
class M2Transport(MiscUtils.PickleRPC.Transport)
    
Method resolution order:
M2Transport
MiscUtils.PickleRPC.Transport
MiscUtils.PickleRPC.SafeUnpickler

Methods defined here:
__init__(self, ssl_context=None)
make_connection(self, host)
parse_response(self, f)
Workaround M2Crypto issue mentioned above.
parse_response_gzip(self, f)
Workaround M2Crypto issue mentioned above.

Data and other attributes defined here:
user_agent = 'M2PickleRPC.py/1 - PickleRPC/1 (by http://www.webwareforpython.org)'

Methods inherited from MiscUtils.PickleRPC.Transport:
request(self, host, handler, request_body, verbose=0, binary=0, compressed=0, acceptCompressedResponse=0)
Issue a Pickle-RPC request.
send_content(self, connection, request_body, binary=0, compressed=0, acceptCompressedResponse=0)
send_host(self, connection, host)
send_request(self, connection, handler, request_body)
send_user_agent(self, connection)

Methods inherited from MiscUtils.PickleRPC.SafeUnpickler:
allowedGlobals(self)
Allowed class names.
 
Must return a list of (moduleName, klassName) tuples for all
classes that you want to allow to be unpickled.
 
Example:
        return [('mx.DateTime', '_DT')]
allows mx.DateTime instances to be unpickled.
findGlobal(self, module, klass)
load(self, file)
loads(self, str)

 
Functions
       
StringIO(...)
StringIO([s]) -- Return a StringIO-like stream for reading or writing

 
Data
        __version__ = 1