geoadmin/mf-chsdi3 — pull request #1044 by gjn (2014-10-03 06:32:25+00:00)
Title: [WIP] Static bod

This is a proof of concept to use static file(s) instead of the db/bod for our metadata.

1) export_bod2json.py is the script that creates the static json files from the bod database. The source of truth remains the bod
2) The static files can be manaully updated with the `updatebod` target. `buildout/bin/buildout -c buildout_lt***.cfg install updatedbod`
3) On wsgi startup, the static files are read and filled into an in-memory sqlite database.
4) All requests to the bod are done on the sqlite database. This allows us to use basically the same model definitions as before.

This POC just demonstrates the mechanism with 1 view -> the catalog.

We need to discuss
1) if we want to go in this direction
2) what the dev process will be for those metadata (branches, deploys, etc.)

Input welcome.