|
From: Tom S. <tom...@we...> - 2003-05-16 16:43:52
|
On Wed, 2003-05-14 at 09:31, Costas Malamas wrote: > I've been toying with an idea to improve performance of my WK app. Is it > possible to create a "batch" Server, i.e. a Server class that can take the > place of e.g. OneShotAdapter, assume some generic HTTP request parameters > and just dump self.writeln() output to stdout or a file? Basically, I'd > like to do two things: a) generate HTML using existing WK code to create > static pages that can be offloaded off to Apache instead of WK, b) generate > HTML using my existing WK code to create things like canned e-mail messages. > > Is this possible? if so, where should I start looking? is there maybe a > better alternative? What about using the TaskKit. This kind of batch processing was one of the motivations writing this kit. Take a loot at (the quite old docs) at http://webware.sourceforge.net/Webware-0.7/TaskKit/Docs/QuickStart.html Start a task which writes your static content once a day/week/.. or just once if you want. The task itself can check if rewriting of the static pages is really necessary or even change the priodicity of repeated task. just my 2 cents -- Tom...@we... http://www.python.de |