[Twisted-Python] How do I get at the Application object (using

Jp Calderone exarkun at divmod.com
Wed Feb 2 10:15:13 EST 2005

On Wed, 2 Feb 2005 11:23:41 -0000, jeff.silver at edl.uk.eds.com wrote:
>Twisted documentation says I can manually save my application by using the
> 'save' method on the Application object. That's fine if I'm creating the
> Application object myself, but how do I get at this object if I'm using
> twistd to start it?
> I've looked at twistd.py, but that seems to use only local variables to hold
> the application object. Do I have to extend twistd with a getMyApplication
> method?
> Background: This is for my work on extending twisted.names to handle DNS
> updates (as mentioned in an earlier post: Jan 31 2005). Each time I get an
> update, I want to save the application to disk.

  The Application is the wrong place to serialize updated DNS records.  The Application is for application configuration (what user should it run as?  what services should it provide?).  Application data should be serialized elsewhere.


More information about the Twisted-Python mailing list