Public Member Functions | |
def | __init__ (self, hostname=defaultHostname, urlTemplate=defaultUrlTemplate) |
def | setHost (self, hostname) |
def | signIn (self, username, password) |
def | signInAgain (self) |
def | signOut (self) |
def | uploadFile (self, filename, backend=defaultBackend, temporaryFile=defaultTemporaryFile) |
Public Attributes | |
hostname | |
http | |
password | |
token | |
urlTemplate | |
userName | |
Private Member Functions | |
def | _uploadFile (self, filename, backend=defaultBackend, temporaryFile=defaultTemporaryFile) |
Upload conditions to the CMS conditions uploader service.
Definition at line 259 of file upload_popcon.py.
def upload_popcon.ConditionsUploader.__init__ | ( | self, | |
hostname = defaultHostname , |
|||
urlTemplate = defaultUrlTemplate |
|||
) |
Definition at line 263 of file upload_popcon.py.
|
private |
Definition at line 340 of file upload_popcon.py.
References upload_popcon.addToTarFile(), upload_popcon.ConditionsUploader.hostname, upload_popcon.ConditionsUploader.http, mps_monitormerge.items, str, cond::auth::ServiceCredentials.userName, cond::CredentialData.userName, and upload_popcon.ConditionsUploader.userName.
Referenced by upload_popcon.ConditionsUploader.uploadFile().
def upload_popcon.ConditionsUploader.setHost | ( | self, | |
hostname | |||
) |
Definition at line 270 of file upload_popcon.py.
References upload_popcon.ConditionsUploader.hostname.
Referenced by upload_popcon.ConditionsUploader.uploadFile().
def upload_popcon.ConditionsUploader.signIn | ( | self, | |
username, | |||
password | |||
) |
init the server.
Definition at line 273 of file upload_popcon.py.
References upload_popcon.ConditionsUploader.hostname, upload_popcon.ConditionsUploader.http, nano_mu_digi_cff.strip, and upload_popcon.ConditionsUploader.urlTemplate.
Referenced by upload_popcon.ConditionsUploader.signInAgain().
def upload_popcon.ConditionsUploader.signInAgain | ( | self | ) |
Definition at line 299 of file upload_popcon.py.
References cond::auth::ServiceCredentials.password, cond::CredentialData.password, upload_popcon.ConditionsUploader.password, upload_popcon.ConditionsUploader.signIn(), cond::auth::ServiceCredentials.userName, cond::CredentialData.userName, and upload_popcon.ConditionsUploader.userName.
Referenced by upload_popcon.ConditionsUploader.uploadFile().
def upload_popcon.ConditionsUploader.signOut | ( | self | ) |
Signs out the server.
Definition at line 302 of file upload_popcon.py.
References upload_popcon.ConditionsUploader.hostname, upload_popcon.HTTP.token, and upload_popcon.ConditionsUploader.token.
Referenced by uploadConditions.ConditionsUploader._checkForUpdates().
def upload_popcon.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 311 of file upload_popcon.py.
References upload_popcon.ConditionsUploader._uploadFile(), upload_popcon.ConditionsUploader.setHost(), and upload_popcon.ConditionsUploader.signInAgain().
upload_popcon.ConditionsUploader.hostname |
Definition at line 264 of file upload_popcon.py.
Referenced by uploadConditions.ConditionsUploader._checkForUpdates(), upload_popcon.ConditionsUploader._uploadFile(), upload_popcon.ConditionsUploader.setHost(), uploadConditions.ConditionsUploader.setHost(), upload_popcon.ConditionsUploader.signIn(), uploadConditions.ConditionsUploader.signIn(), upload_popcon.ConditionsUploader.signOut(), uploadConditions.ConditionsUploader.signOut(), and uploadConditions.ConditionsUploader.uploadFile().
upload_popcon.ConditionsUploader.http |
Definition at line 267 of file upload_popcon.py.
Referenced by uploadConditions.ConditionsUploader._checkForUpdates(), upload_popcon.ConditionsUploader._uploadFile(), upload_popcon.ConditionsUploader.signIn(), uploadConditions.ConditionsUploader.signIn(), and uploadConditions.ConditionsUploader.uploadFile().
upload_popcon.ConditionsUploader.password |
Definition at line 268 of file upload_popcon.py.
Referenced by uploadConditions.ConditionsUploader.signIn(), and upload_popcon.ConditionsUploader.signInAgain().
upload_popcon.ConditionsUploader.token |
Definition at line 285 of file upload_popcon.py.
Referenced by uploadConditions.HTTP.getToken(), uploadConditions.HTTP.query(), uploadConditions.ConditionsUploader.setHost(), uploadConditions.ConditionsUploader.signIn(), upload_popcon.ConditionsUploader.signOut(), and uploadConditions.ConditionsUploader.signOut().
upload_popcon.ConditionsUploader.urlTemplate |
Definition at line 265 of file upload_popcon.py.
Referenced by upload_popcon.ConditionsUploader.signIn(), and uploadConditions.ConditionsUploader.signIn().
upload_popcon.ConditionsUploader.userName |
Definition at line 266 of file upload_popcon.py.
Referenced by upload_popcon.ConditionsUploader._uploadFile(), uploadConditions.ConditionsUploader.signIn(), upload_popcon.ConditionsUploader.signInAgain(), and uploadConditions.ConditionsUploader.uploadFile().