![]() |
![]() |
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 423 of file uploadConditions.py.
def uploadConditions.ConditionsUploader.__init__ | ( | self, | |
hostname = defaultHostname , |
|||
urlTemplate = defaultUrlTemplate |
|||
) |
Definition at line 427 of file uploadConditions.py.
|
private |
Updates this script, if a new version is found.
Definition at line 475 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 434 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 437 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 463 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 466 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 500 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 428 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 431 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signIn().
uploadConditions.ConditionsUploader.password |
Definition at line 432 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signInAgain().
uploadConditions.ConditionsUploader.token |
Definition at line 449 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signOut().
uploadConditions.ConditionsUploader.urlTemplate |
Definition at line 429 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signIn().
uploadConditions.ConditionsUploader.userName |
Definition at line 430 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signInAgain(), and uploadConditions.ConditionsUploader.uploadFile().