[Zope-dev] Creating a fully stand-alone Zope Page Templates
Kevin Smith
Kevin.Smith@themorgue.org
Tue, 25 Feb 2003 09:26:15 -0500
This works!! Thank you! Do you keep your Page Templates up-to-date
with Zope's, or is this version going to stay the way it is from now
on? It looks like you did what I was trying to do (i.e. put a wrapper
around the existing code) so that updates only required you to get the
newest version of Page Templates from Zope and plug them in.
On Tuesday, February 25, 2003, at 01:52 AM, Richard Jones wrote:
> On Tue, 25 Feb 2003 11:07 am, Kevin Smith wrote:
>> I am trying to make a stand-alone Page Templates packages that doesn't
>> have any Zope dependencies. I was able to short circuit security and
>> acquisition. I re-implemented MultiMapping in plain Python and made
>> the Base class just an empty class.
>>
>> This is passing most of the regression tests, but there is one big
>> issue left. When a page template invokes something that is a
>> function,
>> it prints the equivalent of 'repr(function)' instead of 'function()'.
>> What magic that goes on within Zope am I missing in my wrapper?
>
> Hurm. I can't answer this directly, but I have done the same as you and
> divorced ZPT completely from Zope for Roundup. See
> http://roundup.sf.net/ in
> the roundup.cgi.[PageTemplates|TAL|ZTUtils] packages.
>
>
> Richard
>
>
Kevin Smith
Kevin.Smith@sas.com