[ZPT] Re: [Zope] using ZPT/TAL without zope

Ulrich Eck ueck@net-labs.de
Tue, 13 Nov 2001 21:55:22 +0100


found this thread ...

>> TAL works without any additional modules with Python 2.x, but I didn't
>> found a description how to use TAL in Python. Is there any
>> documentation?
>
>
> Not apart from the "examples" in the TAL source and unit tests, no.
>


I modified TAL/PageTemplates to use it without zope in my Report
System, that uses a TAL-Template with some certain xml-data to produce
pdf-files with reportlab (pythonpoint at the moment).

I copied all ExtensionClass/*.so files into my app lib-path
and modified the PageTemplate.py/Expressions.py/... to live
without zope. I modified PathExpressions not to use any security
machinery and traverse only via __getattr__/__getitem__.

this works supprisingly well and I just wanted to ask if somebody
else is interested ??

A Standalone-ExtensionClass would help using it. Any chance that
this will show up ??


I have not yet packaged it as separate module but this would not
take to much effort.

let me know what you think ..



Ulrich Eck
---------------------------------------------------------------------------
net-labs Systemhaus GmbH
Ebersberger Str. 46
85570 Markt Schwaben
fon:   +49-8121-4747-11
fax:   +49-8121-4747-77
email: ueck@net-labs.de
http://www.net-labs.de