On Fri, 09 Nov 2012, Alexander Wagner wrote: > Therefore, I'd suggest to add some simple setup routines to Invenio > for exactly those setup functions. Collections, rights, roles, > indices, oai come to mind here
Yes, that's exactly the purpose of the inveniocfg dumper/loader tool using fixtures. Basically we are transforming low-level SQL-like way of setting up an Invenio site (tabfill.sql, democfgdata.sql) onto something higher-level and human-editable with XML-like, INI-like, or Python-fixture-like format. (atlantis.cfg) See Jiri's preliminary work in this direction: <http://openlab.web.cern.ch/sites/openlab.web.cern.ch/files/technical_documents/Jiri%20Kuncar%20report.pdf> See also our `next' branch where you can already see live examples of fixtures in action. E.g. the demo collection setup example: <http://invenio-software.org/repo/invenio/tree/modules/websearch/lib/websearch_fixtures.py?h=next> e.g. the demo user setup example: <http://invenio-software.org/repo/invenio/tree/modules/websession/lib/webaccount_fixtures.py?h=next> The inveniocfg dumper/loader tool would use similar format. P.S. Note that we are concentrating on doing this for the `next' branch only, i.e. using the new SQLAlchemy-based infrastructure that comes as part of the Flask/Jinja/SQLAlchemy/TwitterBootstrap next branch. Best regards -- Tibor Simko

