I think you will have to pass it. It is not too bad. Massimo
On Dec 31, 7:11 am, Fran <[email protected]> wrote: > On Dec 31, 12:59 pm, mdipierro <[email protected]> wrote: > > > this is logically not possible since an item in SQLRows may or may not > > refer to a single table. It can be for example, the result of a join > > or an expression. > > & my .represent record 'table' is indeed a SQLROWS, right? > > > Do you know you can use > > db.table.represent=yourfunction > > to customize the rows in t2.itemize? > > This is what I'm trying to do with the above 'widget': > db.table.represent=lambda table:shn_list_item(table,action='display') > db.table.represent=lambda table:shn_list_item > (table,action='display',display='table.service',extra='table.key') > > This all works, but I need to get hold of the table name in order to > construct my URLs. > If I can't pull it out programmatically, then I'll just have to pass > it as an extra argument, which isn't too big a deal...just looks > uglier/more maintenance... > > Many thanks, > Fran. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

