[Twisted-web] Re: how to offload to an xml page the text in formless

Michael Hudson mwh at python.net
Mon Dec 6 12:03:19 MST 2004


James Y Knight <foom at fuhm.net> writes:

> On Dec 4, 2004, at 12:48 PM, Andrea Arcangeli wrote:
>> I really like the concept of splitting the "text" from the "code". I
>> don't want having to restart the server just to correct a typo...
>
> Don't know about the freeform issue, but, it *is* possible to reload
> the code without restarting the server from scratch. I made a page
> which executes the python 'reload(module)' on all my page-rendering
> modules, and then resets the root object to a new instance of the top
> level page, so that the site actually uses the newly-reloaded
> code. This seems to work pretty well.

Plug: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/160164

Again, it seems to work for my nevow hackery...

Cheers,
mwh

-- 
  The bottom tier is what a certain class of wanker would call
  "business objects" ...                      -- Greg Ward, 9 Dec 1999




More information about the Twisted-web mailing list