On 10/8/07, Paulino <[EMAIL PROTECTED]> wrote:
>
> By "dir(manter)" do you refer to the manter template or the controller
> method?
> Either way I get an error from dir(manter.p)
>
>
> >>> p=session.query(PPI).get_by(t_year=2008, t_dimx='3.4208')
> >>> p.c.keys()
> ['t_dimx', 't_ceco', 't_desc', 't_pdix', 't_objc', 't_npro', 't_frea',
> 't_resp', 't_dtai', 't_dtaf', 't_fexe', 't_corg', 't_real', 't_year',
> 't_ornd', 't_deno', 't_div1', 't_pfac', 't_pffc', 't_pfar', 't_vof1',
> 't_vof2', 't_vof3', 't_vof4', 't_ref1', 't_ref2', 't_ref3', 't_ref4',
> 't_obs1', 't_Refcntd', 't_Refcntu']
What is your code in template?
Do you get the results to the page?
Delete the template name from expose() and see what it returns.
d=model.Useraddress()
x=d.get_by(USER_SID=345,ADDRESS_SID=2)
Then I pass x(the corresponding record) to my template
return dict(address=address_form,value=x, action=submit_action)
<p><span>${address(value=value, action=action)}</span></p>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---