Public Member Functions | |
def | __init__ |
def | setHost |
def | signIn |
def | signInAgain |
def | signOut |
def | uploadFile |
Public Attributes | |
hostname | |
http | |
password | |
token | |
urlTemplate | |
userName | |
Private Member Functions | |
def | _checkForUpdates |
Upload conditions to the CMS conditions uploader service.
Definition at line 417 of file uploadConditions.py.
def uploadConditions.ConditionsUploader.__init__ | ( | self, | |
hostname = defaultHostname , |
|||
urlTemplate = defaultUrlTemplate |
|||
) |
Definition at line 421 of file uploadConditions.py.
|
private |
Updates this script, if a new version is found.
Definition at line 467 of file uploadConditions.py.
References upload_popcon.DropBox.hostname, uploadConditions.ConditionsUploader.hostname, uploadConditions.ConditionsUploader.signOut(), and upload_popcon.DropBox.signOut().
def uploadConditions.ConditionsUploader.setHost | ( | self, | |
hostname | |||
) |
Definition at line 428 of file uploadConditions.py.
References upload_popcon.DropBox.hostname, and uploadConditions.ConditionsUploader.hostname.
def uploadConditions.ConditionsUploader.signIn | ( | self, | |
username, | |||
password | |||
) |
init the server.
Definition at line 431 of file uploadConditions.py.
References upload_popcon.DropBox.hostname, uploadConditions.ConditionsUploader.hostname, upload_popcon.DropBox.http, uploadConditions.ConditionsUploader.http, and uploadConditions.ConditionsUploader.urlTemplate.
Referenced by uploadConditions.ConditionsUploader.signInAgain(), and cmstc.TagCollector.signInInteractive().
def uploadConditions.ConditionsUploader.signInAgain | ( | self | ) |
Definition at line 455 of file uploadConditions.py.
References cond::auth::ServiceCredentials.password, cond::CredentialData.password, uploadConditions.ConditionsUploader.password, uploadConditions.ConditionsUploader.signIn(), upload_popcon.DropBox.signIn(), cond::auth::ServiceCredentials.userName, cond::CredentialData.userName, and uploadConditions.ConditionsUploader.userName.
def uploadConditions.ConditionsUploader.signOut | ( | self | ) |
Signs out the server.
Definition at line 458 of file uploadConditions.py.
References upload_popcon.DropBox.hostname, uploadConditions.ConditionsUploader.hostname, cond::TagInfo_t.token, uploadConditions.HTTP.token, and uploadConditions.ConditionsUploader.token.
Referenced by uploadConditions.ConditionsUploader._checkForUpdates().
def uploadConditions.ConditionsUploader.uploadFile | ( | self, | |
filename, | |||
backend = defaultBackend , |
|||
temporaryFile = defaultTemporaryFile |
|||
) |
Uploads a file to the dropBox. The filename can be without extension, with .db or with .txt extension. It will be stripped and then both .db and .txt files are used.
Definition at line 492 of file uploadConditions.py.
References uploadConditions.addToTarFile(), upload_popcon.DropBox.hostname, uploadConditions.ConditionsUploader.hostname, cond::auth::ServiceCredentials.userName, cond::CredentialData.userName, and uploadConditions.ConditionsUploader.userName.
uploadConditions.ConditionsUploader.hostname |
Definition at line 422 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader._checkForUpdates(), uploadConditions.ConditionsUploader.setHost(), uploadConditions.ConditionsUploader.signIn(), uploadConditions.ConditionsUploader.signOut(), and uploadConditions.ConditionsUploader.uploadFile().
uploadConditions.ConditionsUploader.http |
Definition at line 425 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signIn().
uploadConditions.ConditionsUploader.password |
Definition at line 426 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signInAgain().
uploadConditions.ConditionsUploader.token |
Definition at line 441 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signOut().
uploadConditions.ConditionsUploader.urlTemplate |
Definition at line 423 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signIn().
uploadConditions.ConditionsUploader.userName |
Definition at line 424 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signInAgain(), and uploadConditions.ConditionsUploader.uploadFile().