[Zope] Bug with new dtml- syntax?
Martijn Pieters
mj@antraciet.nl
Tue, 27 Jul 1999 16:32:21 +0200
At 04:24 25/07/99 , Joe Grace wrote:
>Hi,
>
>I'm using ZopeBeta1, nice install by the way!-)
>
>Two notes (bugs/issues)?
>
>1. When I use the new syntax
>
> &dtml-MyVarGoesHere;
>
>but I forget the trailing semicolon, Zope seems to hang. I note that
>there is no other semi-colon following my typoed &dtml-xxx; token.
That is indeed a bug I think. I came across it too. File it to the
Collector, I forgot to.
>2. I love the dtml-xxx; syntax compared to the <!--xxx--> syntax.
>However, if I'm not mistaken (sort of jumping in over my head here), the
>dtml-xxx; syntax merges the namespace for Zope keywords (e.g., if, else,
>with, in, etc.) with that of user variables (e.g., MyVar, MyFolder, and
>anything else interesting and possibly user defined, e.g., "if", "else",
>"with", "in", etc.). If I'm not wrong on this point, wouldn't it be
>better (and safer) to keep the two namespaces apart? Perhaps two
>syntaxes are needed, e.g.:
>
> dtml-if, dtml-with, dtml-in, ...
> dtml:MyVar, dtml:MyFolder, dtml:MyIf, dtml:if,
>dtml:WhateverGetsCreatedDynamically
>
>to avoid conflicts.
Only variables are accessed through &dtml-xxx;, or <dtml-var xxx>. 'if',
'with', 'in', etc. are accessed through <dtml-tagname>.
--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------