Re: [web2py] Re: Represent not working in details on Powertable

2011-01-27 Thread web2py noob
good job jclevy. i hope the fix for this could reach stable version soon. 2011/1/26 jclevy : > Bruno Rocha writes: > >> >> >> 2011/1/21 web2py noob >> >> >> >> bruno, what you say above is wrong. the workaround is: >> >> db.define_table('tablename', >>     Field('fieldname',db.othertable, repres

[web2py] Re: Represent not working in details on Powertable

2011-01-26 Thread jclevy
Bruno Rocha writes: > > > 2011/1/21 web2py noob > > > > bruno, what you say above is wrong. the workaround is: > > db.define_table('tablename', >    Field('fieldname',db.othertable, represent=lambda f:db.othertable[f].fieldname)) > > best regards. I found that on of last changesets chan

Re: [web2py] Re: Represent not working in details on Powertable

2011-01-21 Thread Bruno Rocha
2011/1/21 web2py noob > bruno, as you say above is wrong. the workaround is: > > db.define_table('tablename', >Field('fieldname',db.othertable, represent=lambda f: > db.othertable[f].fieldname) > ) > > best regards. This is what I have working here: db.define_table('father', Fi

[web2py] Re: Represent not working in details on Powertable

2011-01-21 Thread web2py noob
bruno, as you say above is wrong. the workaround is: db.define_table('tablename', Field('fieldname',db.othertable, represent=lambda f: db.othertable[f].fieldname) ) best regards. On Jan 21, 2:15 pm, Bruno Rocha wrote: > It is a problem with SQLTABLE, detail tables is pure SQLTABLE, SOme peo