[Twisted-Python] Re: Reloading of the same `.rpy' file
Christopher Armstrong
radix at twistedmatrix.com
Tue Apr 29 13:41:23 MDT 2003
On 2003.04.29 14:05, François Pinard wrote:
> [Moshe Zadka]
>
> > The standard idiom is to use the Twisted Registry. Look at
> > http://twistedmatrix.com/documents/howto/using-twistedweb.xhtml
>
> Thanks for the pointer, yet I'm not ready to understand it yet. It seems I
> should know `Componentized' first. Later, hopefully. I wonder what is the
> extent and scope of a `registry'. Exactly one per `.rpy' file presumably?
>
> Does this explain why, or why not, `.rpy' files are reloaded many times?
In itself, it doesn't, but that caching mechanism I mentioned in my last email
uses it (I just went and read the source in twisted/web/script.py)
And the scope of the registry is one per top-level static.File instance; i.e.,
if you have a web server set up with `mktap web --path foo', then there will
only be one Registry unless you create some static.Files explicitly elsewhere.
--
Twisted | Christopher Armstrong: International Man of Twistery
Radix | Release Manager, Twisted Project
---------+ http://twistedmatrix.com/users/radix.twistd/
More information about the Twisted-Python
mailing list