This code working fine but now it fails because the db.define_table()
returns None.
table = db.define_table('DatabaseModel', Field('TableName')) # This is not
working now
for t in db.tables:
table.update_or_insert(TableName=t)
The only thing that I think I have changed that might have affected it was
setting migrate = false in appconfig.ini. I have changed it back but to no
avail.
What could stop db.define_table from returning a table?
(I am using this to create an in-memory table which I populate with a list
of actual tables.)
Thanks.
PS:
https://stackoverflow.com/questions/62908908/under-what-circumstances-would-db-define-table-return-none
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/f0506033-be99-4a9f-88cd-22f2e28452ceo%40googlegroups.com.