[Zope] Re: Output only the first or a particular record using TAL

2005-09-28 Thread Julian Yap
--- Tino Wildenhain <[EMAIL PROTECTED]> wrote: > Am Mittwoch, den 28.09.2005, 16:32 +1000 schrieb Julian Yap: > > --- Chris Withers <[EMAIL PROTECTED]> wrote: > ... > > > Now, if you really can't stop your sql returning more than > one > >

[Zope] Re: Output only the first or a particular record using TAL

2005-09-28 Thread Julian Yap
--- Chris Withers <[EMAIL PROTECTED]> wrote: > > I used the following and it works great (without some > formatting for > > clarity): > > > tal:condition="customer"> > > Customer: > tal:content="python:customer[0]['full_name']"> > > > > hmm, this strikes me as just plain wrong :-S > > Why

[Zope] Re: Output only the first or a particular record using TAL

2005-09-14 Thread Julian Yap
Thanks Tres, Sascha and Jirka for your help. I used the following and it works great (without some formatting for clarity): Customer: The above condition checks that 'customer' is not empty. I think I'll need to do some more reading up on "path expressions" and "python expressions". Stil

[Zope] Output only the first or a particular record using TAL

2005-09-13 Thread Julian Yap
Hi all, I wanted to create something of a header using TAL and a Z SQL Method. I have the following code where getCustomerLicenses is my Z SQL Method and it prints out the customer's full name with details: full_name serial_number In it's simplest form, how do I retrieve just the full