[Zope] Render SQL method as lines
Rich Young
rich@ExperiencePlus.Com
Tue, 20 Mar 2001 11:04:52 -0700
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