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 418 of file uploadConditions.py.
def uploadConditions.ConditionsUploader.__init__ | ( | self, | |
hostname = defaultHostname , |
|||
urlTemplate = defaultUrlTemplate |
|||
) |
Definition at line 422 of file uploadConditions.py.
|
private |
Updates this script, if a new version is found.
Definition at line 470 of file uploadConditions.py.
References upload_popcon.ConditionsUploader.hostname, uploadConditions.ConditionsUploader.hostname, upload_popcon.ConditionsUploader.signOut(), and uploadConditions.ConditionsUploader.signOut().
def uploadConditions.ConditionsUploader.setHost | ( | self, | |
hostname | |||
) |
Definition at line 429 of file uploadConditions.py.
References upload_popcon.ConditionsUploader.hostname, and uploadConditions.ConditionsUploader.hostname.
def uploadConditions.ConditionsUploader.signIn | ( | self, | |
username, | |||
password | |||
) |
init the server.
Definition at line 432 of file uploadConditions.py.
References upload_popcon.ConditionsUploader.hostname, uploadConditions.ConditionsUploader.hostname, upload_popcon.ConditionsUploader.http, uploadConditions.ConditionsUploader.http, upload_popcon.ConditionsUploader.urlTemplate, and uploadConditions.ConditionsUploader.urlTemplate.
Referenced by uploadConditions.ConditionsUploader.signInAgain(), and cmstc.TagCollector.signInInteractive().
def uploadConditions.ConditionsUploader.signInAgain | ( | self | ) |
Definition at line 458 of file uploadConditions.py.
References cond::auth::ServiceCredentials.password, cond::CredentialData.password, upload_popcon.ConditionsUploader.password, uploadConditions.ConditionsUploader.password, upload_popcon.ConditionsUploader.signIn(), uploadConditions.ConditionsUploader.signIn(), cond::auth::ServiceCredentials.userName, cond::CredentialData.userName, upload_popcon.ConditionsUploader.userName, and uploadConditions.ConditionsUploader.userName.
def uploadConditions.ConditionsUploader.signOut | ( | self | ) |
Signs out the server.
Definition at line 461 of file uploadConditions.py.
References upload_popcon.ConditionsUploader.hostname, uploadConditions.ConditionsUploader.hostname, cond::TagInfo_t.token, upload_popcon.HTTP.token, uploadConditions.HTTP.token, upload_popcon.ConditionsUploader.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 495 of file uploadConditions.py.
References uploadConditions.addToTarFile(), upload_popcon.ConditionsUploader.hostname, uploadConditions.ConditionsUploader.hostname, mps_monitormerge.items, cond::auth::ServiceCredentials.userName, cond::CredentialData.userName, upload_popcon.ConditionsUploader.userName, and uploadConditions.ConditionsUploader.userName.
uploadConditions.ConditionsUploader.hostname |
Definition at line 423 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 426 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signIn().
uploadConditions.ConditionsUploader.password |
Definition at line 427 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signInAgain().
uploadConditions.ConditionsUploader.token |
Definition at line 444 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signOut().
uploadConditions.ConditionsUploader.urlTemplate |
Definition at line 424 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signIn().
uploadConditions.ConditionsUploader.userName |
Definition at line 425 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signInAgain(), and uploadConditions.ConditionsUploader.uploadFile().