Public Member Functions | |
def | __init__ (self, hostname=defaultHostname, urlTemplate=defaultUrlTemplate) |
def | setHost (self, hostname) |
def | signIn (self, username, password) |
def | signOut (self) |
def | uploadFile (self, filename, backend=defaultBackend, temporaryFile=defaultTemporaryFile) |
Public Attributes | |
hostname | |
http | |
password | |
token | |
urlTemplate | |
userName | |
Private Member Functions | |
def | _checkForUpdates (self) |
Upload conditions to the CMS conditions uploader service.
Definition at line 446 of file uploadConditions.py.
def uploadConditions.ConditionsUploader.__init__ | ( | self, | |
hostname = defaultHostname , |
|||
urlTemplate = defaultUrlTemplate |
|||
) |
Definition at line 450 of file uploadConditions.py.
|
private |
Updates this script, if a new version is found.
Definition at line 507 of file uploadConditions.py.
References upload_popcon.ConditionsUploader.hostname, uploadConditions.ConditionsUploader.hostname, upload_popcon.ConditionsUploader.http, uploadConditions.ConditionsUploader.http, createfilelist.int, upload_popcon.ConditionsUploader.signOut(), and uploadConditions.ConditionsUploader.signOut().
def uploadConditions.ConditionsUploader.setHost | ( | self, | |
hostname | |||
) |
def uploadConditions.ConditionsUploader.signIn | ( | self, | |
username, | |||
password | |||
) |
Definition at line 463 of file uploadConditions.py.
References EcalCondTools.getToken(), upload_popcon.ConditionsUploader.hostname, uploadConditions.ConditionsUploader.hostname, upload_popcon.ConditionsUploader.http, uploadConditions.ConditionsUploader.http, cond::auth::ServiceCredentials.password, cond::CredentialData.password, upload_popcon.ConditionsUploader.password, uploadConditions.ConditionsUploader.password, str, digitizers_cfi.strip, upload_popcon.HTTP.token, uploadConditions.HTTP.token, upload_popcon.ConditionsUploader.token, uploadConditions.ConditionsUploader.token, upload_popcon.ConditionsUploader.urlTemplate, uploadConditions.ConditionsUploader.urlTemplate, 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 498 of file uploadConditions.py.
References upload_popcon.ConditionsUploader.hostname, uploadConditions.ConditionsUploader.hostname, 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 532 of file uploadConditions.py.
References uploadConditions.addToTarFile(), upload_popcon.ConditionsUploader.hostname, uploadConditions.ConditionsUploader.hostname, upload_popcon.ConditionsUploader.http, uploadConditions.ConditionsUploader.http, mps_monitormerge.items, str, cond::auth::ServiceCredentials.userName, cond::CredentialData.userName, upload_popcon.ConditionsUploader.userName, and uploadConditions.ConditionsUploader.userName.
uploadConditions.ConditionsUploader.hostname |
Definition at line 451 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 454 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader._checkForUpdates(), uploadConditions.ConditionsUploader.signIn(), and uploadConditions.ConditionsUploader.uploadFile().
uploadConditions.ConditionsUploader.password |
Definition at line 455 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signIn().
uploadConditions.ConditionsUploader.token |
Definition at line 456 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.setHost(), uploadConditions.ConditionsUploader.signIn(), and uploadConditions.ConditionsUploader.signOut().
uploadConditions.ConditionsUploader.urlTemplate |
Definition at line 452 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signIn().
uploadConditions.ConditionsUploader.userName |
Definition at line 453 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.signIn(), and uploadConditions.ConditionsUploader.uploadFile().