I've posted two proposals:
Proposes a mechanism for easily using adapters in TALES expressions.
proposes a mechanism for qualifying names defined in TAL and used in TALES expressions.
Based on initial comments, I've retracted ZPTVariableNamespaces and updated:
I've thrown out a few more spellings for adapter use:
Of course, Steve suggested:
So far the cast syntax seems to be the most popular:
with one dissension. :)
One disadvantage I see with the cast notation is that it's a bit jarring in:
as the adapter is applied to a/b/c. The order just doesn't seem quite right.
I'd love to get more feedback or suggestions for the syntax.
As far as in-template definition, I'd like to borrow from Evan's work and allow 'adapter' to be used like 'local' or 'global' in tal:define:
tal:define="adapter dc modules/zope.app.dublincore/IZopeDublinCore"
P.S. Thanks for all the comments so far. :)
-- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce