[Zope] sorry for lame question...

Corey Saltiel corey@axcelerant.com
Sun, 26 Jan 2003 14:05:27 -0800


On Sunday 26 January 2003 01:06 pm, Mike Renfro wrote:
> On Sun, Jan 26, 2003 at 10:38:04AM -0800, Corey Saltiel wrote:
> > The best I can do is:
> >
> > <span tal:replace="here/my_ZSql_method">
> >
> > Which provides:
> >
> > "<Shared.DC.ZRDB.Results.Results instance at 0x8c6df8c>"
> >
> > I don't want the instance - I want the value, of course.
>
> Untested, but what about <span tal:replace="here/my_Zsql_method()">,
> perhaps with any needed parameters inside the parentheses? 
<snip>

  Thanks, and close!
  
  I just got this from the ZPT list:


<p tal:content="python:here.select_CompanyID()[0].CompanyId">CompanyId</p>

  
  Works like a charm - no tal:replace necessary!  Cool.


Cheers,

Corey