CMS 3D CMS Logo

Classes | Functions | Variables
upload_popcon Namespace Reference

Classes

class  ConditionsUploader
 
class  HTTP
 
class  HTTPError
 

Functions

def addToTarFile (tarFile, fileobj, arcname)
 

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'
 
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'
 

Detailed Description

Script that uploads to the new CMS conditions uploader.
Adapted to the new infrastructure from v6 of the upload.py script for the DropBox from Miguel Ojeda.

Function Documentation

◆ addToTarFile()

def upload_popcon.addToTarFile (   tarFile,
  fileobj,
  arcname 
)

Definition at line 252 of file upload_popcon.py.

Referenced by upload_popcon.ConditionsUploader._uploadFile().

252 def addToTarFile(tarFile, fileobj, arcname):
253  tarInfo = tarFile.gettarinfo(fileobj = fileobj, arcname = arcname)
254  tarInfo.mode = 0o400
255  tarInfo.uid = tarInfo.gid = tarInfo.mtime = 0
256  tarInfo.uname = tarInfo.gname = 'root'
257  tarFile.addfile(tarInfo, fileobj)
258 
def addToTarFile(tarFile, fileobj, arcname)

Variable Documentation

◆ __author__

string upload_popcon.__author__ = 'Andreas Pfeiffer'
private

Definition at line 6 of file upload_popcon.py.

◆ __copyright__

string upload_popcon.__copyright__ = 'Copyright 2015, CERN CMS'
private

Definition at line 7 of file upload_popcon.py.

◆ __credits__

list upload_popcon.__credits__ = ['Giacomo Govi', 'Salvatore Di Guida', 'Miguel Ojeda', 'Andreas Pfeiffer']
private

Definition at line 8 of file upload_popcon.py.

◆ __email__

string upload_popcon.__email__ = 'andreas.pfeiffer@cern.ch'
private

Definition at line 11 of file upload_popcon.py.

◆ __license__

string upload_popcon.__license__ = 'Unknown'
private

Definition at line 9 of file upload_popcon.py.

◆ __maintainer__

string upload_popcon.__maintainer__ = 'Andreas Pfeiffer'
private

Definition at line 10 of file upload_popcon.py.

◆ CERN_SSO_CURL_CAPATH

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

Definition at line 62 of file upload_popcon.py.

◆ defaultBackend

string upload_popcon.defaultBackend = 'online'

Definition at line 26 of file upload_popcon.py.

◆ defaultDevHostname

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

Definition at line 28 of file upload_popcon.py.

◆ defaultHostname

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

Definition at line 27 of file upload_popcon.py.

◆ defaultNetrcHost

string upload_popcon.defaultNetrcHost = 'ConditionUploader'

Definition at line 31 of file upload_popcon.py.

◆ defaultTemporaryFile

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

Definition at line 30 of file upload_popcon.py.

◆ defaultUrlTemplate

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

Definition at line 29 of file upload_popcon.py.

◆ defaultWorkflow

string upload_popcon.defaultWorkflow = 'offline'

Definition at line 32 of file upload_popcon.py.