Andrea Arcangeli | 4 Dec 2004 18:48
Favicon

how to offload to an xml page the text in formless

You know formless allows passing the text for the form all inside the
annotate.TypedInterface class.

Is it possible to offload all that text in some xml page? Perhaps it's
possible only if I use the customForm thing from the example? I would
like to be able to edit the text (but only the text written inside the
annotate.TypedInterface) without having to restart the server.

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...

It's not very high prio, http is quite transient, but I may have other
more persistent services on the same tap where the web is also running.
So another solution is to split off the services and leave http alone
(and communicate data between the two servers across pipes or unix
domain sockets). That has the advantage to scale better in
multiprocessor too.

I wonder if you've any suggestion on these matters, thanks!
James Y Knight | 6 Dec 2004 19:10

Re: how to offload to an xml page the text in formless

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.

James
Andrea Arcangeli | 6 Dec 2004 20:31
Favicon

Re: how to offload to an xml page the text in formless

On Mon, Dec 06, 2004 at 01:10:28PM -0500, James Y Knight wrote:
> 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.

I've read about that feature in the twisted docs, that's cool and I
might use it too.
Michael Hudson | 6 Dec 2004 20:03
Favicon

Re: how to offload to an xml page the text in formless

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

Gmane