incidents is a MultipleJoin, so it returns a list and hence len()
works.  If it had been an SQLMultipleJoin, then count() would have
worked.

John

On Oct 30, 5:07 pm, [EMAIL PROTECTED] wrote:
> > print len(emp.incidents)
>
> This did the trick.
>
> However emp.incidents.count() just returns an error that count takes
> one argument.
>
> Sorry turbogears/python newbie here.
>
> Paul


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to