Re: [Zope] Render SQL method as lines
Kenneth- How about <dtml-in getNames> <dtml-var name><dtml-var expr="_.chr(13)"><dtml-var expr="_.chr(10)"> </dtml-in> The expr="_.chr(#)" gives you the ASCII value corresponding to that number -- here, it's carriage return/line feed, which should return query results separated by lines --Rich
How do I render a SQL method as lines ?
I'd like to make a DB lookup for a Multi-Selection property.
This is my DTML method (getNames is a SQL method): <dtml-in getNames> <dtml-var name> </dtml-in>
But this renders as a string which is not compatible...
Regards
Rich Young wrote:
Kenneth- How about <dtml-in getNames> <dtml-var name><dtml-var expr="_.chr(13)"><dtml-var expr="_.chr(10)"> </dtml-in>
why not just <dtml-in getNames> <dtml-var name><dtml-var "'\r\n'"> </dtml-in> or even <dtml-in getNames> <dtml-var "name+'\r\n'"> </dtml-in> ------------------ Hannu
participants (2)
-
Hannu Krosing -
Rich Young