Please post an issue here: http://code.google.com/p/web2py/issues/list

On Tuesday, February 14, 2012 7:18:48 AM UTC-5, Roderick wrote:
>
> Being a noob at Python and Web2py, this is the best I could come up with:
>
> In sqlhtml.py, insert the 2nd try block (below "name = db[referee]._format 
> % record") as follows:
>
>                     try:
>                         name = db[referee]._format % record
>                     except TypeError:
>                         try:
>                             name = db[referee]._format(record)
>                         except TypeError:
>                             name = id
>
> This seems to work for "format=%(name)s" and "format=lambda record: 
> record.name" formats.
>
> If anyone has a better/cleaner solution I'd like to hear it..
>
> Thanks!
>

Reply via email to