Hi,
I'm migrating an application from web2py to py4web.
I have some circular refereces in the database definition.
With web2py, this problem was somehow solved.
Don't remember exactly how, but I think that in web2py the "lazy_tables = True" parameter helped.
In py4web there are 2 scenarios:
without lazy_tables I get:
[FAILED] loading appname ('Cannot resolve reference firmware in device_model definition')
at startup.
with lazy_tables = True I get no error at startup, but when app tries to use them.
Is there a way to resolve this?
db.define_table('device_model',
Field('name', length=100),
Field('default_firmware', 'reference firmware')
)
db.define_table('device_model_firmware',
Field('version', length=100),
Field('filename', length=100),
Field('model', 'reference device_model')
)