Trees | Index | Help |
|
---|
Module spiroserver :: Class SpiroUnpickler |
|
Unpickler
--+
|
SpiroUnpickler
A butchered unpickler which facilitates the passing of object refs between server and client.
It substitutes the locally cached objects in place of refs to these objects.
So we intercept the unpickling and, when client sends a req containing a SpiroObject instance, we look up our locally cached object and substitute that instaed.Method Summary | |
---|---|
Altered front-end, because this unpickler needs to look up locally cached objects | |
Detect SpiroObject instance refs, and replace these with refs to the corresponding locally cached objects. | |
Inherited from Unpickler | |
| |
| |
Read a pickled object representation from the open file. | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
Class Variable Summary | |
---|---|
Inherited from Unpickler | |
dict |
dispatch = {'': <function load_eof at 0x40276144>, '\x80...
|
Method Details |
---|
__init__(self,
spirosession,
pickled)
|
load_build(self)Detect SpiroObject instance refs, and replace these with refs to the corresponding locally cached objects. During unpickling, load_build gets called just as an object is reconstituted and its state restored, so this is the perfect time to remove SpiroObject refs from the stack and replace them with the real local objects
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sun Apr 11 13:37:10 2004 | http://epydoc.sf.net |