fixed
On 11 Giu, 14:39, Jose <jjac...@gmail.com> wrote: > Hello, > > The next model is broken by a change in the trunk. > > db.define_table('TA', > Field('f1'), > Field('f2'), > format='%(f1)s' > ) > > db.define_table('TB', > Field('f1'), > Field('f2', db.TA), > ) > > controller: > > def test(): > form=crud.create(db.TB) > > error: > > Traceback (most recent call last): > File "/usr/home/jose/web2py/gluon/restricted.py", line 178, in > restricted > exec ccode in environment > File "/usr/home/jose/web2py/applications/py_ccu/controllers/ > appadmin.py", line 410, in <module> > File "/usr/home/jose/web2py/gluon/globals.py", line 96, in <lambda> > self._caller = lambda f: f() > File "/usr/home/jose/web2py/applications/py_ccu/controllers/ > appadmin.py", line 124, in insert > form = SQLFORM(db[table], ignore_rw=ignore_rw) > File "/usr/home/jose/web2py/gluon/sqlhtml.py", line 696, in __init__ > inp = self.widgets.options.widget(field, default) > File "/usr/home/jose/web2py/gluon/sqlhtml.py", line 187, in widget > options = requires[0].options() > File "/usr/home/jose/web2py/gluon/validators.py", line 394, in > options > self.build_set() > File "/usr/home/jose/web2py/gluon/validators.py", line 376, in > build_set > groupby = self.groupby or reduce(lambda a,b:a|b,self.fields) > File "/usr/home/jose/web2py/gluon/validators.py", line 376, in > <lambda> > groupby = self.groupby or reduce(lambda a,b:a|b,self.fields) > TypeError: unsupported operand type(s) for |: 'str' and 'str'