Package wsatools :: Module ProgrammeBuilder
[hide private]

Module ProgrammeBuilder

source code

Automatic programme setup tools to determine the correct curation settings. Updates the curation tables in the database and creates the necessary schema files.

Author: N.J.G. Cross

Organization: WFAU, IfA, University of Edinburgh

Contributors: R.S. Collins

To Do:
Classes [hide private]
Automatically determines the correct curation settings for a given programme.
This translates schema template grammar into a current status
Programme requirements from registration file.
Current requirements in archive.
Best new setup from stack data.
This determines the setup of the multi-epoch tables based on the details in Programme.
Functions [hide private]
commitSchema(archive, comment, isNonSurvey=True)
Commits schema to SVN if new tables created on load database.
source code
extractTables(tableLines, status) source code
Variables [hide private]
  __package__ = 'wsatools'
Function Details [hide private]

commitSchema(archive, comment, isNonSurvey=True)

source code 

Commits schema to SVN if new tables created on load database.

  • archive (DbSession) - Connection to database where new tables have been created.
  • comment (str) - Comment, i.e. new or updated.
  • isNonSurvey (bool) - Commit non-survey schema changes.