[web2py] Re: Issues with cpdb - references invalid table

2013-12-02 Thread Alan Etkin
> 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

[web2py] Re: Issues with cpdb - references invalid table

2013-12-01 Thread at
>>> 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

[web2py] Re: Issues with cpdb - references invalid table

2013-12-01 Thread Alan Etkin
> > 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