Classes | |
class | output |
class | uploader |
Functions | |
def | friendly_since (time_type, since) |
def | log (file_handle, message) |
def | new_log_file_id () |
Variables | |
result = upload_controller.upload() | |
upload_controller = uploader(**upload_metadata) | |
upload_metadata = parse_arguments() | |
dictionary | upload_metadata_argument = {} |
Joshua Dawes - CERN, CMS - The University of Manchester This module holds classes to help with uploading conditions to the drop box web service, which also uses CondDBFW to read and write data.
def uploads.friendly_since | ( | time_type, | |
since | |||
) |
Takes a since and, if it is Run-based expressed as Lumi-based, returns the run number. Otherwise, returns the since without transformations.
Definition at line 28 of file uploads.py.
Referenced by uploads.uploader.filter_iovs_by_fcsr().
def uploads.log | ( | file_handle, | |
message | |||
) |
Very simple logging function, used by output class.
Definition at line 39 of file uploads.py.
References conddb_time.to_timestamp().
Referenced by uploads.output.write().
def uploads.new_log_file_id | ( | ) |
Find a new client-side log file name. Note: This cannot use the upload session token since logs need to be written before this is opened. However, this can be changed so that the filename that uses the token is written to once it is obtained.
Definition at line 45 of file uploads.py.
uploads.result = upload_controller.upload() |
Definition at line 771 of file uploads.py.
uploads.upload_controller = uploader(**upload_metadata) |
Definition at line 769 of file uploads.py.
uploads.upload_metadata = parse_arguments() |
Definition at line 757 of file uploads.py.
dictionary uploads.upload_metadata_argument = {} |
Definition at line 762 of file uploads.py.