Re: [Zope] dtml-comment doesn't...

2000-10-12 Thread Chris Withers
"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 -

RE: [Zope] dtml-comment doesn't? Please fix... ;-)

2000-09-05 Thread T.J. Mannos
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

Re: [Zope] dtml-comment doesn't but should!

2000-09-04 Thread Chris Withers
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

Re: [Zope] dtml-comment doesn't? Please fix... ;-)

2000-09-04 Thread 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 3. if found: ignore that block of text else if end of text reached:

Re: [Zope] dtml-comment doesn't? Please fix... ;-)

2000-09-04 Thread Andrew Kenneth Milton
+---[ 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

Re: [Zope] dtml-comment doesn't? Please fix... ;-)

2000-09-04 Thread Chris Withers
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

Re: [Zope] dtml-comment doesn't? Please fix... ;-)

2000-09-04 Thread Andrew Kenneth Milton
+---[ 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

Re: [Zope] dtml-comment doesn't?

2000-08-20 Thread Andrew Kenneth Milton
+---[ 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

Re: [Zope] dtml-comment doesn't?

2000-08-20 Thread Tim Cook
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

[Zope] dtml-comment doesn't?

2000-08-19 Thread Chris Withers
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

Re: [Zope] dtml-comment doesn't?

2000-08-19 Thread Chris McDonough
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:

Re: [Zope] dtml-comment doesn't?

2000-08-19 Thread Chris McDonough
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]

Re: [Zope] dtml-comment doesn't?

2000-08-19 Thread Chris Withers
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

Re: [Zope] dtml-comment doesn't?

2000-08-19 Thread Chris Withers
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

[Zope] dtml-comment doesn't?

2000-08-19 Thread Jerry
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

Re: [Zope] dtml-comment doesn't?

2000-08-19 Thread Tino Wildenhain
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

Re: [Zope] dtml-comment doesn't?

2000-08-19 Thread Dieter Maurer
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,