Hi, I did some research and found the following e-mail http://www.mail-archive.com/webware-discuss@lists.sourceforge.net/msg00114.html
It seems that I wrote a TALKit 3 years ago, but the code is not available on www.python.de anymore (I found it and other material on one of my hard drives, but it looks quite strange and I have forgotten how it works ;-(. Restarting from scratch seems the better approach to me. Look at PSPKit how to do that. Use a KidServletFactory first On Fri, 31.12.2004, 11:20 -0500 Winston Wolf wrotef: > It looks very nice syntax wise. I'm wondering how to best use it in > Servlets though. Can you have a Kid template inherit from > WebKit.Page? If not, how would you use a kid template? The only way > I see right off the bat is to write a python servlet that includes the > Kid template. But that means writing a python class for every > template. and generate the class you mention in the second approach automatically. The first approach is used by PSP too, so it seems to me that both approaches are possible. Folks, please correct me if I am wrong here! I also found this mail from you (Winston) on the cheetah-template list, unfortunately the code you speak about is not available in the SF.net mail archive. Can you maybe repost it here (or send me the code directly) if it is still relevant? http://sourceforge.net/mailarchive/forum.php?thread_id=5379955&forum_id=1542 On Fri, 3 Sep 2004 10:09:28 -0700, Winston WOLFF wrote: > Thanks to everybody for all the pointers. Attached is my short python > program to automatically compile Cheetah templates. I was originally > going to write a Webware plugin, but then I realized that it would only > compile templates that were queried. This would be a problem here to, but many people on this list have used all this stuff in their projects and have certainly a much better insight than me. I have to relearn most of it at the moment ;-) On Sun, 02.01.2005, 16:59 -0500 Winston Wolff wrote: > So I'm wondering, is there a way to compile a Kid template into a > class, and then have another kid template inherit from that class, > extending just certain parts? I do not see any reason why this should not work.. Personally I think is is worth the effort to write a first class KidKit (funny name!), solving all this problems and enabling Webware beginners to put .kid files into their directories and Webware doing all the magic, something I never understood why Cheetah did not do (it was planned, but I have never seen it and people seem still to ask for it). I like out of the box solutions! ;-) Maybe one should prototype all this new stuff directly with Ian Bickings new code http://svn.colorstudy.com/trunk/WSGIKit/ P.S: Ideas for Code (dont't flame me ;-)) Cheetah-Aquarium-Integation http://cvs.sourceforge.net/viewcvs.py/aquarium/aquarium/aquarium/util/InternalLibrary.py?view=markup Cheetah-mod_python-Integration http://wiki.cheetahtemplate.org/cheetahrecipes.html Maybe a simple mod_python Servlet with Kid for hardcore mod_python fans? http://home.comcast.net/~d.popowich/mpservlets/ So many Python template engines, so many Python web development frameworks and after reading http://www.ds9a.nl/webcoding.html even template engines seem questionable ;-) Tom ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss