Ohh My good!! In fact!!
I blame myself for such failure.

You are absolutly wright!

Thank you!
I will be back for sure! I am a rookie!

Carlos Aboim

2009/8/14 DenesL <denes1...@yahoo.ca>

>
>
>
> On Aug 14, 5:39 am, Carlos Aboim <abo...@gmail.com> wrote:
> > Hi group
> >
> > This is my trouble: I can't get the data of an item of a list stored
> > in the database
> >
> > I have a list of several items, wich one of them have several data
> > fields (that's normal :-) )
> > but I am not getting that data in the view. It only shows plain text,
> > all variables do not cross from the controller(?) to the view!
> >
> > the controller:
> >
> > def ver():
> >     ''' to see the data of  a specific item obra '''
> >     try:
> >         obra = registos(registos.obra.id==request.args[0]).select()[0]
> >     except:
> >         redirect(URL(r=request, f='index'))
> >     return dict(obra = obra)
> >
> > the view:
> >
> > {{extend 'layout.html'}}
> > <h1>Obra nº. {{obra.numero}}</h1>
> > <h2><b>{{obra.nome}}</b></h2>
>
> Carlos, you forgot to add '=' at the beginning of the variables you
> want to display
>
> {{extend 'layout.html'}}
> <h1>Obra nº. {{=obra.numero}}</h1>
> <h2><b>{{=obra.nome}}</b></h2>
>
>
> > I don't know if you need more info to help, if you do please let e
> > know!
> >
> > thank you
> > Calos Aboim
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to