[Zope-Checkins] CVS: Releases/Zope/lib/python/TAL - DummyEngine.py:1.37.6.1 ITALES.py:1.4.6.1 TALGenerator.py:1.65.2.1 TALInterpreter.py:1.78.6.1

Stephan Richter stephan.richter at tufts.edu
Fri Aug 29 15:38:06 EDT 2003


On Friday 29 August 2003 14:16, Evan Simpson wrote:
> Added the ability to define prefixes using tal:define="prefix name expr".
> Expression types for the prefix namespace are *not* the same as normal
> TALES expression types.  There are only two: 'builtin' and 'ext'.
> 'builtin' allows the built-in prefix types to be renamed, and 'ext'
> (for 'external' and/or 'extension') allows access to additional
> prefix types defined by trusted code.  An example of this is
> "ext:PageTemplates.NumericConversions", defined in "ExtSample.py".
>
> The convention I'm trying to establish is that 'ext' prefix types
> use names of the form "<Product>.<Descriptive Name>".
>
> In order to accomodate this new facility, I had to defer the compilation
> step for prefixed path segments until they are evaluated.  The compiled
> segment is cached, and reused if the mapping from local prefix name to
> prefix type doesn't change (which it usually won't).

Evan,

does this work in Zope 3 as well? In other words, is this checked in the Zope 
3 TAL version as well? If so, very cool. 

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training



More information about the Zope-Checkins mailing list