CMS 3D CMS Logo

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

Classes

class  ConditionsUploader
 
class  HTTP
 
class  HTTPError
 

Functions

def addToTarFile
 

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'
 

Function Documentation

def upload_popcon.addToTarFile (   tarFile,
  fileobj,
  arcname 
)

Definition at line 252 of file upload_popcon.py.

Referenced by upload_popcon.ConditionsUploader._uploadFile().

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

Variable Documentation

string upload_popcon.__author__ = 'Andreas Pfeiffer'

Definition at line 6 of file upload_popcon.py.

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

Definition at line 7 of file upload_popcon.py.

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

Definition at line 8 of file upload_popcon.py.

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

Definition at line 11 of file upload_popcon.py.

string upload_popcon.__license__ = 'Unknown'

Definition at line 9 of file upload_popcon.py.

string upload_popcon.__maintainer__ = 'Andreas Pfeiffer'

Definition at line 10 of file upload_popcon.py.

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

Definition at line 62 of file upload_popcon.py.

string upload_popcon.defaultBackend = 'online'

Definition at line 26 of file upload_popcon.py.

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

Definition at line 28 of file upload_popcon.py.

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

Definition at line 27 of file upload_popcon.py.

string upload_popcon.defaultNetrcHost = 'ConditionUploader'

Definition at line 31 of file upload_popcon.py.

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

Definition at line 30 of file upload_popcon.py.

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

Definition at line 29 of file upload_popcon.py.

string upload_popcon.defaultWorkflow = 'offline'

Definition at line 32 of file upload_popcon.py.