Package SPyRO :: Module formats :: Class Prolog
[hide private]
[frames] | no frames]

Class Prolog

source code

SPyRO_Format --+
               |
              Prolog

The prolog of the connection

Instance Methods [hide private]
 
__init__(self, priorities)
If |priorities| is None |Prolog.Priorities| is used instead
source code
 
join(self, x) source code
 
_dumps(self, msg)
Dumps a msg.
source code
 
_loads(self, msg)
Loads a msg.
source code
 
load_request(self, msg) source code
 
dump_result(self, msg)
Create a result message with |msg| object
source code
 
dump_error(self, msg)
Create a result message with |msg| object
source code

Inherited from SPyRO_Format: contenttype, dump_callMethod, dump_control, dump_getAttr, dump_setAttr, load_result

Class Variables [hide private]
  EntryReader = re.compile(r'(\w+):(\d.\d)\n?')
  Priorities = {'MARSHAL': 0.7, 'PICKLE0': 0.8, 'PICKLE1': 0.9, ...
Method Details [hide private]

_dumps(self, msg)

source code 
Dumps a msg. Its called for every dump_* if the dump_* method is not overloaded
Overrides: SPyRO_Format._dumps
(inherited documentation)

_loads(self, msg)

source code 
Loads a msg. Its called for every load_* if the load_* method is not overloaded
Overrides: SPyRO_Format._loads
(inherited documentation)

load_request(self, msg)

source code 
Overrides: SPyRO_Format.load_request

dump_result(self, msg)

source code 
Create a result message with |msg| object
Overrides: SPyRO_Format.dump_result
(inherited documentation)

dump_error(self, msg)

source code 
Create a result message with |msg| object
Overrides: SPyRO_Format.dump_error
(inherited documentation)

Class Variable Details [hide private]

Priorities

Value:
{'MARSHAL': 0.7,
 'PICKLE0': 0.8,
 'PICKLE1': 0.9,
 'PICKLE2': 1.0,
 'SOAP': 0.4,
 'SOAPZSI': 0.2,
 'SOAPpy': 0.3,
 'WDDX': 0.5,
...