What's up with the format commands?
I'm trying to use fmt=url_quote to munge the value of a property into something that I can put into an url (obviously :-), yet zope is giving me grief: This... <dtml-var standard_html_header> <dtml-let foo="absolute_url"> <dtml-var foo fmt=url_quote> </dtml-let> <dtml-var standard_html_footer> Gives me this error... Error Type: TypeError Error Value: not all arguments converted [snip] File /usr/lib/zope/lib/python/DocumentTemplate/DT_Let.py, line 145, in render (Object: foo="absolute_url") File /usr/lib/zope/lib/python/DocumentTemplate/DT_Var.py, line 313, in render (Object: foo) (Info: ('foo', 'http://antares/pcgi/kaos/memepool', {'fmt': 'url_quote', '': 'foo'})) TypeError: (see above) John.
<dtml-let foo="absolute_url"> <dtml-var foo fmt=url_quote> </dtml-let>
You made a simple mistake. URL_QUOTE is not a value of FMT, but a flag itself. Use: <dtml-var foo url_quote> That will do. :) Regards, Stephan -- Stephan Richter - (901) 573-3308 - srichter@cbu.edu CBU - Physics & Chemistry; Framework Web - Web Design & Development PGP Key: 735E C61E 5C64 F430 4F9C 798E DCA2 07E3 E42B 5391
participants (2)
-
John Morton -
Stephan Richter