let problem (or just a stupid newbie)
Hello, I was trying the following dtml-method (just from the book) in my Zope 2.3.0 Windows NT installation <dtml-var standard_html_header> <dtml-let person="'Bob'"> <dtml-var person> <dtml-var standard_html_footer> And when i pushed the save changes button, i got this: "No closing tag, for tag <dtml-let person="'Bob'">, on line 2 of nog" (nog is my method). This was the traceback: Traceback (innermost last): File C:\PROGRA~1\ZOPE\lib\python\ZPublisher\Publish.py, line 222, in publish_module File C:\PROGRA~1\ZOPE\lib\python\ZPublisher\Publish.py, line 187, in publish File C:\PROGRA~1\ZOPE\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: nog) File C:\PROGRA~1\ZOPE\lib\python\ZPublisher\Publish.py, line 171, in publish File C:\PROGRA~1\ZOPE\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: manage_edit) File C:\PROGRA~1\ZOPE\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: manage_edit) File C:\PROGRA~1\ZOPE\lib\python\OFS\DTMLMethod.py, line 310, in manage_edit (Object: nog) File C:\PROGRA~1\ZOPE\lib\python\DocumentTemplate\DT_String.py, line 388, in munge (Object: nog) File C:\PROGRA~1\ZOPE\lib\python\DocumentTemplate\DT_String.py, line 408, in cook (Object: nog) File C:\PROGRA~1\ZOPE\lib\python\DocumentTemplate\DT_String.py, line 242, in parse (Object: nog) File C:\PROGRA~1\ZOPE\lib\python\DocumentTemplate\DT_String.py, line 278, in parse_block (Object: nog) File C:\PROGRA~1\ZOPE\lib\python\DocumentTemplate\DT_String.py, line 131, in parse_error (Object: nog) Document Template Parse Error: (see above) Did i do something wrong?, it must, since this is rather basic, isn't it? I posted it to the collector as a question, but i am not sure whether that is correct. Met vriendelijke groeten, Hans de Wit h.de.wit@scp.nl
Hans de Wit wrote:
I was trying the following dtml-method (just from the book) in my Zope 2.3.0 Windows NT installation
Really? direct from the book?
<dtml-var standard_html_header> <dtml-let person="'Bob'"> <dtml-var person> <dtml-var standard_html_footer>
...that should be: <dtml-var standard_html_header> <dtml-let person="'Bob'"> <dtml-var person> </dtml-let> <dtml-var standard_html_footer>
"No closing tag, for tag <dtml-let person="'Bob'">, on line 2 of nog"
To be fair, that's a pretty descriptive error message ;-)
Did i do something wrong?, it must, since this is rather basic, isn't it? I posted it to the collector as a question, but i am not sure whether that is correct.
Ooo... the collector is probably a little excessive. Generally ask on the list if you want to stick something in the collector, that's what I do most of the time ;-) cheers, Chris
On Mon, 29 Jan 2001, Hans de Wit wrote:
<dtml-var standard_html_header> <dtml-let person="'Bob'"> <dtml-var person> <dtml-var standard_html_footer> [skip] Document Template Parse Error: (see above)
But of course. dtml-let must be closed with </dtml-let> Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Hans de Wit wrote:
Hello,
I was trying the following dtml-method (just from the book) in my Zope 2.3.0 Windows NT installation
<dtml-var standard_html_header> <dtml-let person="'Bob'"> <dtml-var person> <dtml-var standard_html_footer>
And when i pushed the save changes button, i got this:
"No closing tag, for tag <dtml-let person="'Bob'">, on line 2 of nog" (nog is my method). This was the traceback:
Just what it says "no closing tag". Several tags; in, with, let, etc. require closing tags. Note also that the variable person is ONLY available in-between the tags. Try: <dtml-var standard_html_header> <dtml-let person="'Bob'"> <dtml-var person> </dtml-let person> <dtml-var standard_html_footer> The variable name is not required in the closing. But it sure is a good habit. -- Tim Cook, President -- Free Practice Management,Inc. | http://www.FreePM.com Office: (901) 884-4126 "Liberty has never come from the government." - Woodrow Wilson
participants (4)
-
Chris Withers -
Hans de Wit -
Oleg Broytmann -
Tim Cook