"iap_y2fun.com" wrote:
dtml-comment
dtml-var "sendMail(from='hello@world')"
/dtml-comment
Don't worry... the problems are mainyl caused 'cos dtml-comment
doesn't do what most people would expect it to...
*grinz*
Chris
___
Zope maillist -
ptember 04, 2000 5:11 PM
To: Kip Rugger
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] dtml-comment doesn't? Please fix... ;-)
Won't work, the container will still be parsed for correctness at 'save'
time.
The problem isn't getting nested comments per se, we already have that.
The problem is to complet
Jerry wrote:
Sure, dtml-comment is meant for "comments", but every
programmer needs to disable blocks of code to eliminate
factors while debugging. We all abuse comment characters for
this purpose, and it works well enough to get the job done.
Gotta agree with that!!
But in Zope it goes
Andrew Kenneth Milton wrote:
But then you'd have to parse the contents to find out if the comments are
properly nested...
Well, the parsing should be pretty simple:
1. find dtml-comment
2. search for /dtml-comment
3. if found:
ignore that block of text
else if end of text reached:
+---[ Chris Withers ]--
| Andrew Kenneth Milton wrote:
| But then you'd have to parse the contents to find out if the comments are
| properly nested...
|
| Well, the parsing should be pretty simple:
| 1. find dtml-comment
| 2. search for /dtml-comment
Or dtml-comment
Andrew Kenneth Milton wrote:
| What's wrong with that?
It's wrong :-)
dtml-comment
crap
more crap
dtml-comment
Lots of crap
/dtml-comment
/dtml-comment
In order to parse that fragment, you need to parse the blocks in case you
find another opening block, so that you can
+---[ Kip Rugger ]--
|
| [snip]
|
| dtml-if "0"
| crap
| more crap
| dtml-if "0"
| Lots of crap
| /dtml-if
| /dtml-if
|
| by analogy with the common practice of #if 0 in C
Won't work, the container will still be parsed for correctness at 'save' time.
The problem isn't
+---[ Jan H. Haul ]--
| Tino Wildenhain wrote:
|
| dtml-comment is a tag like all the other tags. It does not
| control the parser. One advantage is, you may nest comment-tags.
|
| True.
| But still, the parser could read over all comments as long as the
| dtml-comment
Tino Wildenhain wrote:
So if you have:
dtml-comment
... some syntactically bad dtml ...
/dtml-comment
You still can't save the page 'cos the the parser throws up an error.
That seems silly to me. Anyone else agree?
No, I disagree. Why do you want bad dtml even inside
Hi,
Is is just me or does stuff inside a dtml-comment get parsed?
So if you have:
dtml-comment
... some syntactically bad dtml ...
/dtml-comment
You still can't save the page 'cos the the parser throws up an error.
That seems silly to me. Anyone else agree?
cheers,
Chris
Yeah, that's the way it works. I'm not sure why, though I remember
someone trying to explain it to me around the time of the last Python
conference.
On Sat, 19 Aug 2000, Chris Withers wrote:
Hi,
Is is just me or does stuff inside a dtml-comment get parsed?
So if you have:
That's not very nice :(
Any reason why it can't be changed to be as expected?
I think it can safely be changed to not evaluate what's between
the comment tags. Patches accepted, as always. :-)
___
Zope maillist - [EMAIL PROTECTED]
Chris McDonough wrote:
Yeah, that's the way it works. I'm not sure why, though I remember
someone trying to explain it to me around the time of the last Python
conference.
That's not very nice :(
Any reason why it can't be changed to be as expected?
cheers,
Chris
Chris McDonough wrote:
That's not very nice :(
Any reason why it can't be changed to be as expected?
I think it can safely be changed to not evaluate what's between
the comment tags. Patches accepted, as always. :-)
I'd love to, btu I wouldn't know where to start.
Besides, I'm
Chris Withers wrote:
Is is just me or does stuff inside a dtml-comment get parsed?
snip
You still can't save the page 'cos the the parser throws up an error.
That seems silly to me. Anyone else agree?
That, and if you can save the page, because the DTML happens
to be valid, the DTML
Hi,
Chris Withers wrote:
Hi,
Is is just me or does stuff inside a dtml-comment get parsed?
So if you have:
dtml-comment
... some syntactically bad dtml ...
/dtml-comment
You still can't save the page 'cos the the parser throws up an error.
That seems silly to me. Anyone
Chris Withers writes:
Is is just me or does stuff inside a dtml-comment get parsed?
"dtml-comment" must do a bit of parsing:
It must at least recognized "/dtml-comment".
Maybe, it wants to recognize nested "dtml-comment" (probably not),
then it must look at all tags.
Probably, however,
17 matches
Mail list logo