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]
  ProgrammeBuilder
Automatically determines the correct curation settings for a given programme.
  Status
This translates schema template grammar into a current status
  Registration
Programme requirements from registration file.
  CurrentSetup
Current requirements in archive.
  BestSetup
Best new setup from stack data.
  SynopticSetup
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.

Parameters:
  • 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.