On 15 January 2012 22:49, Mathias Van Daele <[email protected]>wrote:

> Hello,
>
> I have a select crud, with a URL in the column id.
>
> If I click 'edit', I should be redirected to a page, where I can
> update the concerned contact_part record.
> (as in a grid)
>
> What should I put between the URL brackets ?  _href=URL(????)
>
> How do I pass the selected record ?
>
>
I use something like this in the model:

db.akb_country.id.represent = \
            lambda id, record: A('edit',
                         _href = URL(r = request, c = 'default', # c refers
to controller
                                   f = 'edit_akb_country', # f : the
function in the controller
                                       args = str(id)))

Regards
Johann

-- 
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

Reply via email to