227 resultFiles = self.taskDict['RESULTFILES']
228 resultLinks = ''
229 if 'AveBeamSpot' in self.executedSteps:
230 self.log(text='WARNING: You should always run AveBeamSpot after LinkResults to avoid overwriting results\n',doPrint=True)
231 if not resultFiles:
232 return
233 for r in resultFiles.split():
234 what = '.'.join(r.split('.')[-2:])
235 if what in linkTemplates:
236 if linkTemplates[what]:
237 resultLinks = ' '.join([resultLinks, linkTemplates[what] % (self.dsName,self.taskName,r)])
238 else:
239 resultLinks = ' '.join([resultLinks,'<a href="../files?u=%s/%s/%s">%s</a>' % (self.dsName,self.taskName,r,what)])
240 self.taskman.setValue(self.dsName,self.taskName,'RESULTLINKS',resultLinks)
241
242