[Twisted-Python] Getting Stories Straight (RPYs)

Andrew Bennetts andrew-twisted at puzzling.org
Tue Jun 24 19:54:17 MDT 2003


On Tue, Jun 24, 2003 at 06:38:59PM -0400, Christopher Armstrong wrote:
> 
> On 2003.06.24 14:15, Abe Fettig wrote:
> > On Tue, 2003-06-24 at 11:54, screwtape at froup.com wrote:
> > 
> > > One of the nice things about .rpy is that they work well with the
> > > usual HTML development tweak-source-reload-browser cycle.
> > 
> > This is true - most web developers are not used to having to stop and
> > restart the server after every change.  Is there anything wrong with
> > putting all your code into /index.rpy during development, so that code
> > gets reloaded on every page visit?  It's easy enough to move the code
> > into a regular module later.
> 
> I would strongly recommend, rather than shoving all of your
> code into an .rpy file for its reloading semantics, just 
> calling reload() (or twisted.python.rebuild.rebuild()) on the
> modules that are part of your project in the .rpy file.

Note that there are now docs on rebuild in CVS, too:
    http://twistedmatrix.com/users/warner/doc-latest/howto/upgrading.xhtml

-Andrew.





More information about the Twisted-Python mailing list