[ZPT] Making ZPT usuable outside Zope
Dieter Maurer
dieter at handshake.de
Sat Aug 21 18:28:07 EDT 2004
Chris Withers wrote at 2004-8-21 08:54 +0200:
> ...
>> TALES.py
>> 1. changed imports to import from roundup.cgi
Obviously not adaequate outside "roundup".
>> 2. implemented ustr as str (removes import from DocumentTemplate)
Not sure, what "ustr" is -- but probably not "str"...
>> 3. removed import and use of Unauthorized from zExceptions
It should use "zExceptions.Unauthorized" at least in the Zope
context.
>> PageTemplate.py
>> 1. changed imports to import from roundup.cgi
inappropriate
>> 2. removed use of ExtensionClass
>> 3. removed use of ComputedAttribute
not sure whether these are essential...
>> Expressions.py
>> 1. removed all Zope-specific code (doesn't even try to import that
>> stuff now)
If they work without -- maybe...
>> 2. removed all Acquisition
If they work without -- maybe...
>> 3. removed blocking of leading-underscore URL components
Surely, this should stay inside Zope...
>> PythonExpr.py
>> 1. more informative traceback info
Very good!
--
Dieter
More information about the ZPT
mailing list