>
> I've removed the two lines, but the behavior is still the same. So there 
> must be an other error in my code?
>

Hmm, I would think it should work -- not sure what the problem is.
 

> My idea is that the format does specify the string for db.object.location 
> and the db.object.location.represent should modify the string to be a link. 
> Is this not possible at all?
>

That's not how it works. When the table is defined, if you have 
Field('location', db.location, ...) with no explicit "represent=...", then 
it will automatically set the "represent" attribute for you based on the 
_format attribute of the db.location table. However, if you set an explicit 
"represent" attribute, you won't get the automatically generated version 
based on _format. In that case, you'd have to do it manually:

db.object.location.represent = lambda location, row: \
    A(db.location._format % db.location(location),
      _href=URL('location', 'update', args=(location.id), 
user_signature=True))

Anthony

Reply via email to