Public Member Functions | |
def | __init__ |
rcReportGen constructor. | |
def | initialize |
Initialize the run report generator. | |
def | connectDB |
Connect to the database. | |
def | disconnectDB |
Disconnect from the database. | |
def | addField |
Add field to the run report. | |
def | writeReportCSV |
Write the run report as a comma delimited file. | |
def | writeReportXML |
Write the run report as an XML. | |
def | writeReportSQL |
Write the run report to a relational database. | |
def | recordInfo |
def | readReportXML |
Read and parse the XML run report. | |
def | getReportFields |
Retrieve the run report item names. | |
def | getReportData |
Retrieve the run report item values. | |
def | getReportUnits |
Retrieve the run report item units. | |
def | getTimestamp |
Retrieve the timestamp of the run. | |
def | addShift |
Add a shift summary to the database if it doesn't already exist. | |
def | getShiftInfo |
Find the shift information based on the timestamp t. | |
def | obtainLocalTime |
Convert a GMT date/time to local date/time. | |
def | obtainGMTime |
Convert a local date/time to a GMT date/time. | |
def | convertTimeTuple |
Convert a time tuple to an SQL format.A date/time tuple. |
Definition at line 54 of file rcReportGen.py.
|
rcReportGen constructor.
Definition at line 56 of file rcReportGen.py. |
|
Add field to the run report.
Definition at line 122 of file rcReportGen.py. |
|
Add a shift summary to the database if it doesn't already exist. This method finds the shift id that the run belongs to based on tstamp and creates a shift summary if it doesn't already exist. This was done because the web e-logbook does not display the shift if it doesn't contain a shift summary even if it contains runs that belong to that shift.
Definition at line 328 of file rcReportGen.py. |
|
Connect to the database.
Definition at line 93 of file rcReportGen.py. |
|
Convert a time tuple to an SQL format.A date/time tuple.
Definition at line 433 of file rcReportGen.py. |
|
Disconnect from the database.
Definition at line 116 of file rcReportGen.py. |
|
Retrieve the run report item values.
Definition at line 307 of file rcReportGen.py. |
|
Retrieve the run report item names.
Definition at line 300 of file rcReportGen.py. |
|
Retrieve the run report item units.
Definition at line 314 of file rcReportGen.py. |
|
Find the shift information based on the timestamp t.
Definition at line 368 of file rcReportGen.py. |
|
Retrieve the timestamp of the run.
Definition at line 321 of file rcReportGen.py. |
|
Initialize the run report generator.
Definition at line 71 of file rcReportGen.py. |
|
Convert a local date/time to a GMT date/time.
Definition at line 420 of file rcReportGen.py. |
|
Convert a GMT date/time to local date/time.
Definition at line 409 of file rcReportGen.py. |
|
Read and parse the XML run report.
Definition at line 260 of file rcReportGen.py. |
|
Definition at line 249 of file rcReportGen.py. |
|
Write the run report as a comma delimited file.
Definition at line 136 of file rcReportGen.py. |
|
Write the run report to a relational database.
Definition at line 195 of file rcReportGen.py. |
|
Write the run report as an XML.
Definition at line 160 of file rcReportGen.py. |