The auto_import functionality is somewhat limited, as it only reads in the
metadata from the *.table files, which only hold information relevant to
the database (i.e., name, type, unique, not null, etc.). It does not import
web2py specific attributes, such as defaults, validators, widgets, etc.
Anthony
On Wednesday, January 21, 2015 at 10:55:11 AM UTC-5, Dmitry Ermolaev wrote:
>
> If I use auto_import - and add new record - than receive None values
> instead default
>
> db = DAL("mysql:/....s", #
> folder='applications/shop/databases',
> pool_size=3,
> auto_import=True,
> migrate_enabled = SETS.migrate_enabled,
> migrate=SETS.migrate,
> fake_migrate=SETS.fake_migrate,
> check_reserved=['all'],
> )
> ....
> Field('accuracy', 'integer', *default *= 2), # accuracy
>
> not worked default ((
>
> referenced fields too not show list
> Field('curr_id', db.currs, readable=False),
>
>
--
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].
For more options, visit https://groups.google.com/d/optout.