Re: Using PSE under Win32

2007-06-26 Thread Eduardo Dobay
On 24 jun, 21:19, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > What do you have PythonHandler set to and what does it identify? The > error above suggests that whatever you identify as the handler is not > a callable object like a function. Are you perhaps identifying some > sort of PSE template o

Re: Do eval() and exec not accept a function definition? (like 'def foo: pass) ?

2007-06-23 Thread Eduardo Dobay
Hey, I think you could use lambda functions for that matter (Ever heard of them?). You could write something like: def generate_html_tag_function(tag_name, start_or_end): start_or_end.lower() assert(start_or_end in ('start', 'end')) if start_or_end == 'start': function = lambda: '

Using PSE under Win32

2007-06-23 Thread Eduardo Dobay
Hello, I've been playing around with mod_python these days (using Publisher and PSP), and it has been working smoothly under Windows XP (using Apache 2.2). But when I installed PSE and went to use it with mod_python, it didn't work. The error I get whenever I try to load a PSE page is: Traceback (