Home | Trees | Indices | Help |
---|
|
1 ################################################################################ 2 # Ganga Project. http://cern.ch/ganga 3 # 4 # $Id: SimpleStreamer.py,v 1.1 2008-07-17 16:40:56 moscicki Exp $ 5 ################################################################################ 6 7 8 from utilities import serialize, gangaObjectFactory, GangaObjectFactoryError 9 10 import Ganga.Utility.logging 11 logger = Ganga.Utility.logging.getLogger(modulename=1) 121437 3816 j, migrated, errors = gangaObjectFactory(attrDict) 17 if errors: 18 j.status = 'incomplete' 19 msg = "Job %d can not be completely recreated because of the errors %s It is created in incomplete state." % (j.id, str(map(str, errors))) 20 logger.error(msg) 21 else: 22 if migrated: 23 # add job to the MigrationControl list for flushing back to the repository 24 from MigrationControl import migrated_jobs 25 if j not in migrated_jobs: 26 migrated_jobs.append(j) 27 return j2830 return serialize(job)3133 return repr(self._getDictFromJob(job))3436 return self._getJobFromDict(eval(stream))405442 return repr(serialize(tree))4345 tree, migrated, errors = gangaObjectFactory(eval(stream)) 46 if migrated: 47 msg = "JobTree was migrated from previous version" 48 logger.warning(msg) 49 if errors: 50 tree = None 51 msg = "JobTree can not be recreated because of the errors %s." % str(map(str, errors)) 52 logger.error(msg) 53 return tree
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Jun 25 10:35:31 2012 | http://epydoc.sourceforge.net |