[Twisted-Python] Simple app pickle issue when stopping
Alexander May
alex-news at comcast.net
Sat May 15 17:43:22 MDT 2004
Thank you. Soon, I'll be attaching to a database, and the pickling stuff
won't matter, so I'll use the -o flag as you suggest.
Anyone have any experience with gadfly and using it with twisted? I'm
prototyping so I'm tempted to give it a try and avoid setting up a real
database (not that gadfly isn't real). And while I'm off subject, anyone
have a suggestion for integrating authorization with windows (and probably
Linux down the road)? I'm reading the docs...
Thanks,
Alex
-----Original Message-----
From: twisted-python-bounces at twistedmatrix.com
[mailto:twisted-python-bounces at twistedmatrix.com] On Behalf Of
exarkun at divmod.com
Sent: Saturday, May 15, 2004 4:34 PM
To: Twisted discussion stuff
Subject: Re: [Twisted-Python] Simple app pickle issue when stopping
On Sat, 15 May 2004 15:14:49 -0400, "Alexander May" <alex-news at comcast.net>
wrote:
>Still trying to learn/understand twisted. Mind exploding/getting
frustrated. I created this very simple app:
> [snip]
Instances are pickled by saving the name of their class and their
associated state. Since the SimpleResource class isn't defined in a real
module, instances of it cannot be pickled (its name is a lie). Move the
class definition into a real module, then import it from your tac file. The
pickle problems should go away.
Also, if pickling isn't important, you can just pass the -o flag to twistd
and the application will not be saved on shutdown.
Jp
_______________________________________________
Twisted-Python mailing list
Twisted-Python at twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
More information about the Twisted-Python
mailing list