CMS 3D CMS Logo

Classes | Functions
upload_popcon Namespace Reference

Classes

class  ConditionsUploader
 
class  HTTP
 
class  HTTPError
 

Functions

def addToTarFile (tarFile, fileobj, arcname)
 

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

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)