[ZCM] [ZC] 781/ 1 Request "Allow TAL to be used without Zope"
Collector: Zope Bugs, Features, and Patches ...
zope-coders-admin@zope.org
Sun, 26 Jan 2003 14:02:27 -0500
Issue #781 Update (Request) "Allow TAL to be used without Zope"
Status Pending, Zope/feature+solution low
To followup, visit:
http://collector.zope.org/Zope/781
==============================================================
= Request - Entry #1 by hellmann on Jan 26, 2003 2:02 pm
I am working on adding template support to HappyDoc 3.x (http://happydoc.sourceforge.net) using TAL. I started wtih PageTemplates, but I would very much prefer to be able to avoid redistributing any more of the Zope source base than is absolutely necessary.
I have been able to build my own expression engine fashioned after the one in TALES.py. This has allowed me to get away with distributing on the TAL package and a few supporting modules copied from the PageTemplate package.
I did need to make one small change to TALInterpreter.py in order to avoid a dependency on the DocumentTemplate package (see below). It would be nice if this was included in future releases, so I can keep up to date without having to maintain a modified code tree.
Thanks,
Doug
diff /home/dhellmann/Personal/Devel/HappyDoc3/happydoclib/docset/docset_TAL/TAL/TALInterpreter.py lib/python/TAL/TALInterpreter.py
25,28c25
< if sys.modules.has_key('Zope'):
< from DocumentTemplate.DT_Util import ustr
< else:
< from ustr import ustr
---
> from DocumentTemplate.DT_Util import ustr
==============================================================