Classes | |
class | ConditionsUploader |
class | HTTP |
class | HTTPError |
Variables | |
string | __author__ = 'Andreas Pfeiffer' |
string | __copyright__ = 'Copyright 2015, CERN CMS' |
list | __credits__ = ['Giacomo Govi', 'Salvatore Di Guida', 'Miguel Ojeda', 'Andreas Pfeiffer'] |
string | __email__ = 'andreas.pfeiffer@cern.ch' |
string | __license__ = 'Unknown' |
string | __maintainer__ = 'Andreas Pfeiffer' |
int | __version__ = 1 |
string | CERN_SSO_CURL_CAPATH = '/etc/pki/tls/certs' |
string | defaultBackend = 'online' |
string | defaultDevHostname = 'cms-conddb-dev.cern.ch' |
string | defaultHostname = 'cms-conddb-prod.cern.ch' |
string | defaultNetrcHost = 'ConditionUploader' |
string | defaultTemporaryFile = 'upload.tar.bz2' |
string | defaultUrlTemplate = 'https://%s/cmsDbUpload/' |
string | defaultWorkflow = 'offline' |
def uploadConditions.addToTarFile | ( | tarFile, | |
fileobj, | |||
arcname | |||
) |
Definition at line 411 of file uploadConditions.py.
Referenced by uploadConditions.ConditionsUploader.uploadFile().
def uploadConditions.authenticateUser | ( | dropBox, | |
options | |||
) |
Definition at line 590 of file uploadConditions.py.
References getInput().
Referenced by uploadAllFiles().
def uploadConditions.getInput | ( | default, | |
prompt = '' |
|||
) |
Like raw_input() but with a default and automatic strip().
Definition at line 44 of file uploadConditions.py.
Referenced by authenticateUser(), getInputChoose(), getInputWorkflow(), runWizard(), and uploadAllFiles().
def uploadConditions.getInputChoose | ( | optionsList, | |
default, | |||
prompt = '' |
|||
) |
Makes the user choose from a list of options.
Definition at line 68 of file uploadConditions.py.
References getInput().
Referenced by runWizard().
def uploadConditions.getInputRepeat | ( | prompt = '' | ) |
Like raw_input() but repeats if nothing is provided and automatic strip().
Definition at line 83 of file uploadConditions.py.
Referenced by runWizard().
def uploadConditions.getInputWorkflow | ( | prompt = '' | ) |
Like getInput() but tailored to get target workflows (synchronization options).
Definition at line 55 of file uploadConditions.py.
References getInput().
def uploadConditions.main | ( | ) |
Entry point.
Definition at line 774 of file uploadConditions.py.
References uploadAllFiles().
def uploadConditions.runWizard | ( | basename, | |
dataFilename, | |||
metadataFilename | |||
) |
Definition at line 95 of file uploadConditions.py.
References getInput(), getInputChoose(), and getInputRepeat().
Referenced by uploadAllFiles().
def uploadConditions.testTier0Upload | ( | ) |
def uploadConditions.uploadAllFiles | ( | options, | |
arguments | |||
) |
Definition at line 616 of file uploadConditions.py.
References authenticateUser(), getInput(), and runWizard().
Referenced by main().
def uploadConditions.uploadTier0Files | ( | filenames, | |
username, | |||
password, | |||
cookieFileName = None |
|||
) |
Uploads a bunch of files coming from Tier0. This has the following requirements: * Username/Password based authentication. * Uses the online backend. * Ignores errors related to the upload/content (e.g. duplicated file).
Definition at line 736 of file uploadConditions.py.
Referenced by testTier0Upload().
string uploadConditions.__author__ = 'Andreas Pfeiffer' |
Definition at line 6 of file uploadConditions.py.
string uploadConditions.__copyright__ = 'Copyright 2015, CERN CMS' |
Definition at line 7 of file uploadConditions.py.
list uploadConditions.__credits__ = ['Giacomo Govi', 'Salvatore Di Guida', 'Miguel Ojeda', 'Andreas Pfeiffer'] |
Definition at line 8 of file uploadConditions.py.
string uploadConditions.__email__ = 'andreas.pfeiffer@cern.ch' |
Definition at line 11 of file uploadConditions.py.
string uploadConditions.__license__ = 'Unknown' |
Definition at line 9 of file uploadConditions.py.
string uploadConditions.__maintainer__ = 'Andreas Pfeiffer' |
Definition at line 10 of file uploadConditions.py.
int uploadConditions.__version__ = 1 |
Definition at line 12 of file uploadConditions.py.
string uploadConditions.CERN_SSO_CURL_CAPATH = '/etc/pki/tls/certs' |
Definition at line 221 of file uploadConditions.py.
string uploadConditions.defaultBackend = 'online' |
Definition at line 27 of file uploadConditions.py.
string uploadConditions.defaultDevHostname = 'cms-conddb-dev.cern.ch' |
Definition at line 29 of file uploadConditions.py.
string uploadConditions.defaultHostname = 'cms-conddb-prod.cern.ch' |
Definition at line 28 of file uploadConditions.py.
string uploadConditions.defaultNetrcHost = 'ConditionUploader' |
Definition at line 32 of file uploadConditions.py.
string uploadConditions.defaultTemporaryFile = 'upload.tar.bz2' |
Definition at line 31 of file uploadConditions.py.
string uploadConditions.defaultUrlTemplate = 'https://%s/cmsDbUpload/' |
Definition at line 30 of file uploadConditions.py.
string uploadConditions.defaultWorkflow = 'offline' |
Definition at line 33 of file uploadConditions.py.