<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>How do I get at the Application object (using twistd) to save it?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>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?</FONT></P>

<P><FONT SIZE=2>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?</FONT></P>

<P><FONT SIZE=2>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.</FONT></P>

</BODY>
</HTML>