Geoff,
you've got a good point. If we could sort out the import
logic needed to get #extend working properly with .tmpl files
and @extend working with .psp files that would be ideal.
The generated code for #extend Templates.SkeletonPage could
be:
============================================
try:
from Templates.SkeletonPage import SkeletonPage
except:
SkeletonPage = importTmplFile("Templates.SkeletonPage")
# raise another ImportError exception if nothing found
Tavis
On Friday 08 June 2001 10:31, Geoff Talvola wrote:
> At 10:19 AM 6/8/01 -0700, Mike Orr wrote:
> >On Fri, Jun 08, 2001 at 07:08:39PM +0200, Tom Schwaller wrote:
> > > ServletFactory.py and PlateKit have gone! Hope they
> > > come back...
> >
> >They were removed because they overlap with TScompile
> > but are less flexible. The paradigm now is:
> > Write a template *.tmpl
> > Run TScompile, which creates *.py servlets.
> > Each servlet contains the template as a constant
> > string, and 5-6 lines of code that wraps it into a TS
> > class.
>
> I'm not using TemplateServer, so feel free to ignore me.
> But I would strongly urge you to reconsider this. Having
> no separate compilation step is one of the really nice
> things about Python. It keeps you from making mistakes,
> it saves time, and there's no downside that I can think
> of. Webware is designed to support this paradigm through
> servlet factories, and this is a very good thing. Why
> abandon it?
>
> You mentioned that PSP has a similar problem with
> including other PSPs. I wasn't aware of that. But I'd
> rather fix the problem, instead of requiring a separate
> compilation step.
>
>
> --
>
> - Geoff Talvola
> [EMAIL PROTECTED]
>
> _______________________________________________
> Webware-devel mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/webware-devel
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel