RE: [Zope] DTML vs. DW2 extensions
At 01:27 PM 10/7/99 -0400, Michel Pelletier wrote:
Is it possible to use;
<dtml-var name="something" html_quote="">
instead?
Sure. Although I would suggest html_quote=1 looks more 'pythonic'. setting it to an empty string makes it looks like you are setting it to a python false value.
-Michel
Don't forget about the full syntax: <dtml-var name="something" fmt="html_quote"> Regards, David P.S. Is there any work being done or time frame for the XML compliant DTML syntax to be added?
Sure. Although I would suggest html_quote=1 looks more 'pythonic'. setting it to an empty string makes it looks like you are setting it to a python false value.
-Michel
Don't forget about the full syntax: <dtml-var name="something" fmt="html_quote">
That is it! Thanks David and Michel, //johan
Regards, David
P.S. Is there any work being done or time frame for the XML compliant DTML syntax to be added?
At 01:19 PM 10/8/99 +0200, you wrote:
Don't forget about the full syntax: <dtml-var name="something" fmt="html_quote">
Hey, that doesn't work? //johan I've been messing my tags up all day, sorry :(
David, tone P.S. I'll double check before I post anything again....
Wait a minute. I thought that; <dtml-var variablename> and; <dtml-var name="variablename"> was equal. It doesn't seem to be the case? I get the following error-message: <SNIP> ... System Unavailable This site is currently experiencing technical difficulties. Please contact the site administrator for more information. For additional technical information, please refer to the HTML source for this page. Thank you for your patience. ... <!-- Error type: KeyError Error value: 'title' --> ... Traceback (innermost last): File /home/Zope2/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /home/Zope2/lib/python/ZPublisher/Publish.py, line 179, in publish File /home/Zope2/lib/python/Zope/__init__.py, line 201, in zpublisher_exception_hook (Object: RoleManager) File /home/Zope2/lib/python/ZPublisher/Publish.py, line 165, in publish File /home/Zope2/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_main) File /home/Zope2/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage_main) File /home/Zope2/lib/python/App/special_dtml.py, line 120, in __call__ (Object: manage_main) (Info: /home/Zope2/lib/python/Products/TMenu/manage_metastructure.dtml) File /home/Zope2/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: manage_main) File /home/Zope2/lib/python/DocumentTemplate/DT_Var.py, line 238, in render (Object: 'title') KeyError: (see above) ... </SNIP>
From this line: <dtml-var name="title" html_quote=1>
But this works fine: <dtml-var title html_quote=1> //johan
Johan Carlsson wrote:
From this line: <dtml-var name="title" html_quote=1>
But this works fine: <dtml-var title html_quote=1>
Works for me. I'm using the CVS version, perhaps its a 2.0.0 bug that got fixed? I don't remember hearing about it. -Michel
//johan
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(Related lists - please, no cross posts or HTML encoding!
To receive general Zope announcements, see: http://www.zope.org/mailman/listinfo/zope-announce
For developer-specific issues, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
David Kankiewicz -
Johan Carlsson -
Michel Pelletier