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. 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. Enjoying the examples by the way. The DTML for the Embedded folders was surprisingly interesting with the manipulation (cancellation) of the headers, etc.. Thanks to whomever for the illustrative and educational examples. = Joe =
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 ------------------------------------------
Martijn Pieters wrote:
That is indeed a bug I think. I came across it too. File it to the Collector, I forgot to.
Ok, done. (My first Collector submission. :-)
Only variables are accessed through &dtml-xxx;, or <dtml-var xxx>. 'if', 'with', 'in', etc. are accessed through <dtml-tagname>.
Ahh, now I get it. I was sort of skeptical a design flaw like that would be tolerated by the DC folks. Everything is so nicely designed already! Thank you for resolving the issue for me. Cheers, = Joe =
participants (2)
-
Joe Grace -
Martijn Pieters