CMS 3D CMS Logo

List of all members | Public Member Functions
production_tasks.WriteToDatasets Class Reference
Inheritance diagram for production_tasks.WriteToDatasets:
production_tasks.Task

Public Member Functions

def __init__ (self, dataset, user, options)
 
def run (self, input)
 
- Public Member Functions inherited from production_tasks.Task
def __init__ (self, name, dataset, user, options, instance=None)
 
def addOption (self, parser)
 
def getname (self)
 
def run (self, input)
 

Additional Inherited Members

- Public Attributes inherited from production_tasks.Task
 dataset
 
 instance
 
 name
 
 options
 
 user
 

Detailed Description

Publish the sample to 'Datasets.txt' if required

Definition at line 513 of file production_tasks.py.

Constructor & Destructor Documentation

def production_tasks.WriteToDatasets.__init__ (   self,
  dataset,
  user,
  options 
)

Definition at line 515 of file production_tasks.py.

515  def __init__(self, dataset, user, options):
516  Task.__init__(self,'WriteToDatasets', dataset, user, options)
def __init__(self, dataset, user, options)

Member Function Documentation

def production_tasks.WriteToDatasets.run (   self,
  input 
)

Definition at line 517 of file production_tasks.py.

References production_tasks.Task.dataset, edmIntegrityCheck.IntegrityCheck.dataset, and genericValidation.GenericValidationData.dataset.

517  def run(self, input):
518  name = "%s/%s" % (self.dataset,self.options.tier)
519  name = name.replace('//','/')
520  user = self.options.batch_user
521  added = addToDatasets(name, user = user)
522  return {'Added':added, 'Name':name, 'User':user}