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
conflicts
        sql_fields = dict(fix(v) for v in sql_fields.items())
        sql_fields_old = dict(fix(v) for v in sql_fields_old.items())
        sql_fields_aux = dict(fix(v) for v in sql_fields_aux.items())


What do your lines 703 and 704. say?

On May 30, 6:26 pm, Carlos <carlosgali...@gmail.com> wrote:
> Hi,
>
> Running latest trunk, I get the following error (on any request):
>
>    <type 'exceptions.AttributeError'>('dict' object has no attribute
> 'startswith')
>    File C:\web2py\gluon\dal.py in migrate_table at line 703
>    ... sql_fields[key].startswith('INT,') ...
>
> Maybe ['sql'] should be added to sql_fields[key] in line # 703 and
> to sql_fields_old[key] in line # 704?.
>
> Thanks,
>
>    Carlos

Reply via email to