> returns the correct order, the same as defined in models/db.py, whereas if
> I add a print statement 'print table' under loop 'for table in self.db:'
> in scripts/cpdb.py it returns the list of tables in alphabetic order.
>
I belive this is a problem with the DAL class initialization. If y
>>> for table in db:
>>>print table._tablename
returns the correct order, the same as defined in models/db.py, whereas if
I add a print statement 'print table' under loop 'for table in self.db:'
in scripts/cpdb.py it returns the list of tables in alphabetic order.
Thanks & Regards
On
>
> Any suggestions how it can be fixed? How can we force *cpdb* to use the
> same order of tables definition as defined in *db.py*?
>
The copy method loops trough the DAL instance table items. Try this in a
console:
>>> for table in db:
>>>print table._tablename
Does it return the correc
3 matches
Mail list logo