Hi!

When I use a lambda function for the "format" attribute of a table,
display the table in a smartgrid and click a linked table, the
referring table is shown by id instead of by the lambda
representation. The format works fine elsewhere (e.g. in smartgrid
rows). I think this part of sqlhtml.py is generating an exception
which is why I'm getting the index:

line 1918 (v1.99.4):
line 1942 (trunk on 14 Feb 2012)
 try:
                        name = db[referee]._format % record
                    except TypeError:
                        name = id
                    breadcrumbs += [A(T(db[referee]._plural),
                                      _class=trap_class(),
 
_href=URL(args=request.args[:nargs])),
                                    ' > ',
                                    A(name,_class=trap_class(),
 
_href=URL(args=request.args[:nargs]+[
 
'view',referee,id],user_signature=True)),
                                    ' > ']

Is this a bug?

Thanks!

Reply via email to