Maintenance Update for 1.1 Release
Features/Previews:
- WeeklyHoursWidget
Breaking Changes:
- Field names are properly treated as case-sensitive (requires a fake-migrate)
Other Changes:
- web2py-2.21.1 compatibility
- Grouped-options widget showing tooltips over checkboxes too
Fixes:
- Datatable ignores attempts to sort by JSON fields (rather than crashing)
- Fix for several race conditions in location selector
- Fix a race condition in inline forms that sometimes blocked the submit button
- Custom filter variables with $$ prefix rewritten to POST vars
- Fix crash in IS_ONE_OF validator during required-test
- Fix permission rule lookup with auth.override
- Fix grouped-options widget loosing values on form errors
- Fix crash in password-reset
Upgrade Instructions
When upgrading from a previous release, you need to perform a so-called "fake migrate" before (!) running the pull-script.
Step by step:
- Remove the compiled-folder
- Edit models/00_db.py to add the ignore_field_case parameter to the DAL instantiation:
db = DAL(db_string,
check_reserved = check_reserved,
pool_size = pool_size,
migrate_enabled = migrate,
fake_migrate_all = fake_migrate,
lazy_tables = not migrate,
# Add this line:
ignore_field_case = db_type != "postgres",
)
- Edit models/000_config.py, and enable both migrate and fake_migrate settings:
settings.base.migrate = True
settings.base.fake_migrate = True
- Run a noop-cycle:
cd /home/web2py
python web2py.py -S eden -M -R applications/eden/static/scripts/tools/noop.py
- Disable both migrate and fake_migrate settings again:
settings.base.migrate = False
#settings.base.fake_migrate = True
- Run the regular pull-script