| Home | Trees | Indices | Help |
|
|---|
|
|
Base class to define generic post-curation database update activities. Call getFileList() to prepare the list of files to read / records to update, then call updateDb() on each file/record to update its entry in the db. updateDb() should be overridden by classes that inherit this class. To modify the file/record list in daughter classes please see documentation of the method _getRecordsList(). If further initialisation needs to be performed before determining the file list, then override _prepare().
|
|||
| Nested Errors and Exceptions | |||
|---|---|---|---|
|
Inherited from |
|||
|
|||
|
|||
| FileError |
|
||
| list(tuple) |
|
||
|
|||
| list(tuple(str, int)) |
|
||
|
|||
| str |
|
||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
_autoCommit = TrueShould this curation task auto-commit database transactions? |
|||
_recordAttrs = Required standard attributes for the list of records to update. |
|||
_recordSet = Defines the standard set of records to update. |
|||
_recordTable = Defines the standard table to search for records to update. |
|||
_errorLog = FileError()
|
|||
_recordList = Nonehash(x) |
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Update db: Prepare file list, and read the FITS files.
|
|
|
Update database record for this multiframe ID. This method is overriden by subclasses to define their own individual database updates.
|
Retrieves a list of records that need updating in the database. The set is defined by DbUpdater._recordAttrs and DbUpdater._recordSet, which returns all multiframeIDs in table Multiframe for which files exist on our pixel server. Override this function and/or modify self._recordSet to produce different lists of records to update.
|
|
|||
_recordSetDefines the standard set of records to update.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Sep 8 15:46:54 2014 | http://epydoc.sourceforge.net |