good job jclevy. i hope the fix for this could reach stable version soon.
2011/1/26 jclevy <jcl...@pixsound.com>: > Bruno Rocha <rochacbruno@...> writes: > >> >> >> 2011/1/21 web2py noob <web2py.n...@gmail.com> >> >> >> >> 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 changed the sqlhtml.py file at lite 1337, > introducing : > > elif field.type.startswith('reference'): > pass > > prevents the SQLTABLE to take care of the 'represent' clause (see > http://code.google.com/p/web2py/issues/detail?id=141#makechanges). > >