Works now -- thank you!
On 6 jan, 14:21, Massimo Di Pierro <massimo.dipie...@gmail.com> wrote: > ? > > this line should not be in trunk: > r = self.represent_exceptions(self,obj,fieldtype) > it is > > r = self.represent_exceptions(obj,fieldtype) > > Massimo > > On Jan 6, 1:23 am, David Marko <dma...@tiscali.cz> wrote: > > > I have the same problem here. > > > Whats more with latest trunk I cant > > openhttp://127.0.0.1:8000/welcome/default/index. It raises: > > > Traceback (most recent call last): > > File "c:\java\web2py\gluon\restricted.py", line 188, in restricted > > exec ccode in environment > > File "c:/java/web2py/applications/welcome/models/db.py" > > <http://127.0.0.1:8000/admin/default/edit/welcome/models/db.py>, line 42, > > in <module> > > auth.define_tables() # creates all needed > > tables > > File "c:\java\web2py\gluon\tools.py", line 1173, in define_tables > > format='%(first_name)s %(last_name)s (%(id)s)') > > File "c:\java\web2py\gluon\dal.py", line 3431, in define_table > > polymodel=polymodel) > > File "c:\java\web2py\gluon\dal.py", line 468, in create_table > > not_null = self.NOT_NULL(field.default,field.type) > > File "c:\java\web2py\gluon\dal.py", line 665, in NOT_NULL > > return 'NOT NULL DEFAULT %s' % self.represent(default,field_type) > > File "c:\java\web2py\gluon\dal.py", line 1087, in represent > > r = self.represent_exceptions(self,obj,fieldtype) > > TypeError: represent_exceptions() takes exactly 3 arguments (4 given) > >