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>

I don't know if you need more info to help, if you do please let e
know!

thank you
Carlos 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