CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
uploadConditions Namespace Reference

Classes

class  ConditionsUploader
 
class  HTTP
 
class  HTTPError
 

Functions

def addToTarFile
 
def getCredentials
 
def getInput
 
def getInputChoose
 
def getInputRepeat
 
def getInputWorkflow
 
def main
 
def re_upload
 
def runWizard
 
def testTier0Upload
 
def upload
 
def uploadAllFiles
 
def uploadTier0Files
 

Variables

string __author__ = 'Andreas Pfeiffer'
 
string __copyright__ = 'Copyright 2015, CERN CMS'
 
list __credits__ = ['Giacomo Govi', 'Salvatore Di Guida', 'Miguel Ojeda', 'Andreas Pfeiffer']
 
string __email__ = 'giacomo.govi@cern.ch'
 
string __license__ = 'Unknown'
 
string __maintainer__ = 'Giacomo Govi'
 
int __version__ = 1
 
string authPathEnvVar = 'COND_AUTH_PATH'
 
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'
 
string devLogDbSrv = 'cms_orcoff_prep'
 
string logDbSchema = 'CMS_COND_DROPBOX'
 
string prodLogDbSrv = 'cms_orcoff_prod'
 
int waitForRetry = 15
 

Function Documentation

def uploadConditions.addToTarFile (   tarFile,
  fileobj,
  arcname 
)

Definition at line 438 of file uploadConditions.py.

def uploadConditions.getCredentials (   options)

Definition at line 626 of file uploadConditions.py.

def uploadConditions.getInput (   default,
  prompt = '' 
)
Like raw_input() but with a default and automatic strip().

Definition at line 51 of file uploadConditions.py.

def uploadConditions.getInputChoose (   optionsList,
  default,
  prompt = '' 
)
Makes the user choose from a list of options.

Definition at line 75 of file uploadConditions.py.

def uploadConditions.getInputRepeat (   prompt = '')
Like raw_input() but repeats if nothing is provided and automatic strip().

Definition at line 90 of file uploadConditions.py.

def uploadConditions.getInputWorkflow (   prompt = '')
Like getInput() but tailored to get target workflows (synchronization options).

Definition at line 62 of file uploadConditions.py.

def uploadConditions.main ( )
Entry point.

Definition at line 896 of file uploadConditions.py.

def uploadConditions.re_upload (   options)

Definition at line 811 of file uploadConditions.py.

def uploadConditions.runWizard (   basename,
  dataFilename,
  metadataFilename 
)

Definition at line 102 of file uploadConditions.py.

def uploadConditions.testTier0Upload ( )

Definition at line 975 of file uploadConditions.py.

def uploadConditions.upload (   options,
  arguments 
)

Definition at line 885 of file uploadConditions.py.

def uploadConditions.uploadAllFiles (   options,
  arguments 
)

Definition at line 656 of file uploadConditions.py.

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 774 of file uploadConditions.py.

Variable Documentation

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__ = 'giacomo.govi@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__ = 'Giacomo Govi'

Definition at line 10 of file uploadConditions.py.

int uploadConditions.__version__ = 1

Definition at line 12 of file uploadConditions.py.

string uploadConditions.authPathEnvVar = 'COND_AUTH_PATH'

Definition at line 39 of file uploadConditions.py.

string uploadConditions.CERN_SSO_CURL_CAPATH = '/etc/pki/tls/certs'

Definition at line 228 of file uploadConditions.py.

string uploadConditions.defaultBackend = 'online'

Definition at line 29 of file uploadConditions.py.

string uploadConditions.defaultDevHostname = 'cms-conddb-dev.cern.ch'

Definition at line 31 of file uploadConditions.py.

string uploadConditions.defaultHostname = 'cms-conddb-prod.cern.ch'

Definition at line 30 of file uploadConditions.py.

string uploadConditions.defaultNetrcHost = 'ConditionUploader'

Definition at line 34 of file uploadConditions.py.

string uploadConditions.defaultTemporaryFile = 'upload.tar.bz2'

Definition at line 33 of file uploadConditions.py.

string uploadConditions.defaultUrlTemplate = 'https://%s/cmsDbUpload/'

Definition at line 32 of file uploadConditions.py.

string uploadConditions.defaultWorkflow = 'offline'

Definition at line 35 of file uploadConditions.py.

string uploadConditions.devLogDbSrv = 'cms_orcoff_prep'

Definition at line 37 of file uploadConditions.py.

string uploadConditions.logDbSchema = 'CMS_COND_DROPBOX'

Definition at line 38 of file uploadConditions.py.

string uploadConditions.prodLogDbSrv = 'cms_orcoff_prod'

Definition at line 36 of file uploadConditions.py.

int uploadConditions.waitForRetry = 15

Definition at line 40 of file uploadConditions.py.