Hi Frank,
> somehow I cannot get the setting for KidOutputMethod to work with
> Webware 0.9.
I've just had a look at it and you're right - this is a bug.
> I also managed to get nice, lowercase xhtml by changing class
> KidServletFactory's __init__ to explicitely use the global
defaultOutput:
>
> class KidServletFactory(ServletFactory):
> """Servlet factory for Kid templates."""
>
> def __init__(self,application):
> ServletFactory.__init__(self, application)
> setting = application.setting
> # change here: added "global"
> global defaultOutput = setting('KidOutputMethod')
> ...
Excactly that's the bug. The global statement was missing in the
__init__ method. But are you sure that the above ever worked? The global
statement cannot be combined with an assignment. I think you have to:
global defaultOutput; defaultOutput = setting('KidOutputMethod')
> However if I now open a *.kid page through the Appserver (the builtin,
> standalone server actually), the browser asks me to save the file
> which it recognizes as a "BIN" file.
Can you try again with the correct syntax and give me feedback whether
this solves the problem for you? I will check in the fix to the repository.
-- Christoph
|