It could be the same problem in
http://groups.google.com/group/web2py/msg/ef14e0a844a67df6

try changing
r = self.represent_exceptions(self,obj,fieldtype)

to
r = self.represent_exceptions(obj,fieldtype)

in the dal.py source.


On Jan 6, 4:52 am, dederocks <dediro...@gmail.com> wrote:
> Hello,
>
> Since the last trunk update(s? -- less than 24 hours), I get the
> following problem:
>
> Traceback (most recent call last):
>   File "C:\Users\Andre\Documents\web2py\gluon\restricted.py", line
> 188, in restricted
>     exec ccode in environment
>   File "C:/Users/Andre/Documents/web2py/applications/soltrans/models/
> db.py", line 41, in <module>
>     auth.define_tables(username=True)              # creates all
> needed tables
>   File "C:\Users\Andre\Documents\web2py\gluon\tools.py", line 1151, in
> define_tables
>     format='%(username)s')
>   File "C:\Users\Andre\Documents\web2py\gluon\dal.py", line 3431, in
> define_table
>     polymodel=polymodel)
>   File "C:\Users\Andre\Documents\web2py\gluon\dal.py", line 468, in
> create_table
>     not_null = self.NOT_NULL(field.default,field.type)
>   File "C:\Users\Andre\Documents\web2py\gluon\dal.py", line 665, in
> NOT_NULL
>     return 'NOT NULL DEFAULT %s' % self.represent(default,field_type)
>   File "C:\Users\Andre\Documents\web2py\gluon\dal.py", line 1087, in
> represent
>     r = self.represent_exceptions(self,obj,fieldtype)
> TypeError: represent_exceptions() takes exactly 3 arguments (4 given)
>
> Python 2.7 win 7.
>
> BR, Andre

Reply via email to