--On Sonntag, 26. Januar 2003 10:38 -0800 Corey Saltiel <corey@axcelerant.com> wrote:
I'm completely new to Zope and am starting out with something I imagine is amazingly simple - but after many attempts and perusals of docs and lists, I'm still unable to figure this one out...
Using ZPT - how do I get the value returned from a ZSql method? This method only ever returns *one* value; I'd rather not do a tal:repeat if I'm able to.
The best I can do is:
<span tal:replace="here/my_ZSql_method">
try something like <span tal:repeat="brain here/my_zsq_method"> ... the brain variable does represent a single row of the result of your SQL query. You should be able to access the cols by "brain/<column_name>" where <column_name> is the name of column returned by the query. -aj