that was it, thanks for fast answer

On St, 2009-01-07 at 08:34 -0800, mdipierro wrote:
> It is already parsed for you by t2 and stored in t2.id=int(request.args
> [-1])
> 
> {{=A(' Modify',_href=URL(r=request,f='modify_ware/%s'%t2.id))}}
> 
> 
> Massimo
> 
> On Jan 7, 10:29 am, Julius Minka <[email protected]> wrote:
> > using T2
> >
> > http://127.0.0.1:8000/f7/default/display_ware/3
> >
> > in controller:
> > def display_ware():
> >     ware=t2.display(db.ware)
> >     return dict(ware=ware)
> >
> > in HTML:
> > {{extend 'layout.html'}}
> > <div class="frame">
> >     <h2>Tovar</h2>
> >     {{=ware}}
> > </div>
> > <div class="frame">
> > {{=A(' Modify',_href=URL(r=request,f='modify_ware/%s'%request.args))}}
> > </div>
> >
> > How can I make the link to modify displayed ware? - How can I get that
> > id value?
> > That closest thing I got is request.args, but it is ['3'], I need just
> > 3.
> > I tried db.ware.id and ware.id without success.
> >
> > Julius
> > 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to