File

mod:File

operation file

class DIRAC.RequestManagementSystem.Client.File.File(fromDict=None)

Bases: object

A bag object holding Operation file attributes.
Parameters:

It is managed by SQLAlchemy, so the OperationID, FileID should never be set by hand (except when constructed from JSON of course…) In principle, the _parent attribute could be totally managed by SQLAlchemy. However, it is set only when inserted into the DB, this is why I manually set it in the Operation

Warning

You cannot add a File object to multiple Operations. They are different entry in the DB, so they must be different objects

ChecksumType

checksum type prop

GUID

GUID prop

LFN

LFN prop

Status

status prop

__init__(fromDict=None)

c’tor

Parameters:
  • self – self reference
  • fromDict (dict) – property dict
toJSON()

Returns the json formated string that describes the File