[mod_python] using callable classes instead of plain functions in handlers

Nick nick at dd.revealed.net
Fri Oct 1 10:28:37 EDT 2004

Daniel Popowich wrote:
> Martin Slouf writes:
>>first of all, thanks for the answer.
>>1. im bound to use PSP -- graphics and gui features are done by
>>another guy, we just cooperate on form fields, i think that it is no
>>problem with mod_python.servlet (i agree, that code generated HTML
>>definitely has its advances, but i cant use it now.)
> <soapbox>
> I Understand, but disagree.  If you take the point of view that a
> designer of an interface is just that, a designer, not a coder, then
> you do not have to work in PSP-like systems.  If you were writing a
> Tkinter app, what would you do if you wanted the services of a graphic
> designer to create a usable interface?  Design != Code.
> </soapbox>

You may also want to consider a system that provides more separation of the 
HTML/interface and the Python code.  There are many, but allow me to take 
another opportunity to plug PSE, which I think does this very well.  A big 
bonus to your GUI developer is that you can provide custom tags so that 
he/she never has to see a lick of Python in the template.



More information about the Mod_python mailing list