On Wed, Feb 11, 2009 at 11:19 AM, zaf <[email protected]> wrote:
>
> Hi guys,
> In order to improve our app's response time I decided to upgrade to
> genshi. Seemed straight forward enough and I figured I should do it
> while I still have a manageable amount of templates.
> It worked fine for simple templates however when I have a $
> {obj.member} element such as in the input below:
>
> <div py:def="addsocieteformfunc(s)" >

s is a table and not a mapped class instance (from what I can see in
your traceback)... if you indeed want to work on the table then try:

${s.c.id_societe}

if you wanted to work on a societe object then the code you show is
good but you are calling the function with the wrong s argument.

Florent.

--~--~---------~--~----~------------~-------~--~----~
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