[web2py] Re: error: type 'exceptions.AttributeError'('dict' object has no attribute 'startswith'), dal.py in migrate_table at line 703

2011-05-30 Thread Massimo Di Pierro
I do not think you are running trunk. Do you have this code in dal.py? def fix(item): k,v=item if not isinstance(v,dict): v=dict(type='unkown',sql=v) return k.lower(),v ### make sure all field names are lower case to avoid

[web2py] Re: error: type 'exceptions.AttributeError'('dict' object has no attribute 'startswith'), dal.py in migrate_table at line 703

2011-05-30 Thread Carlos
Sorry, line # 698 (and maybe 699) ... File C:\web2py\gluon\dal.py, line 4212, in define_table polymodel=polymodel) File C:\web2py\gluon\dal.py, line 641, in create_table fake_migrate=fake_migrate) File C:\web2py\gluon\dal.py, line 698, in migrate_table

[web2py] Re: error: type 'exceptions.AttributeError'('dict' object has no attribute 'startswith'), dal.py in migrate_table at line 703

2011-05-30 Thread Massimo Di Pierro
you are right. good catch! On May 30, 8:34 pm, Carlos carlosgali...@gmail.com wrote: Sorry, line # 698 (and maybe 699) ...   File C:\web2py\gluon\dal.py, line 4212, in define_table     polymodel=polymodel)   File C:\web2py\gluon\dal.py, line 641, in create_table