[Twisted-Python] mktap problem, cPickle.UnpickleableError

Jp Calderone exarkun at intarweb.us
Mon Apr 28 17:42:19 EDT 2003


On Mon, Apr 28, 2003 at 04:29:08PM -0500, Allan Streib wrote:
> 
> Hi,
> 
> I am trying to create an XMLRPC server based on the plugins example in the
> HOWTO documentation.  My TAP construction module looks like:
> 
> [snip]
> 
> I think I am getting this because my "MyXMLRPCMethods" instance contains a
> connection to the LDAP Server.  So what is the best approach to work
> around this.  Sorry if this is a newbie question; I am a newbie.
> 

  Don't connect to the LDAP server until your application starts up.  This
may be best done in a Factory's startFactory() method or a Service's
startService method, or hackfully in one of your object's __setstate__
methods.

  mktap is writing a configuration file to disk, not actually running your
app.  So you don't want to set up any runtime stuff, like network
connections, in updateApplication().

  Jp

-- 
A disciple of another sect once came to Drescher as he was eating his
morning meal. "I would like to give you this personality test," said the
outsider, "because I want you to be happy." Drescher took the paper that was
offered him and put it into the toaster: "I wish the toaster to be happy, 
too."
-- 
 up 39 days, 17:03, 8 users, load average: 0.67, 0.68, 0.64
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20030428/f5c07df3/attachment.pgp 


More information about the Twisted-Python mailing list