def compute(self):
        if self.has_input("File"):
            fileValue = self.get_input("File")
        else:
            fileValue = None
        if fileValue:
            batchDisplayEvent = BatchDisplayCellEvent()
            # FIXME: Will this work? there should be no
            # self.currentVersion in the module (there is a
            # self.version)
            batchDisplayEvent.vistrail = (self.vistrailName,
                                          self.currentVersion)
            f = open(fileValue.name, 'r')            
            for line in f.read().split('\n'):
                comps = line.split('|')
                if len(comps)==2:
                    e = DisplayCellEvent()        
                    e.sheetReference = StandardSingleCellSheetReference()
                    e.sheetReference.sheetName = comps[1]
                    e.cellType = SVGCellWidget
                    from os.path import abspath, basename, dirname, join
                    F = PathObject(join(dirname(abspath(fileValue.name)),
                                        basename(comps[0])))
                    e.inputPorts = (F,)
                    batchDisplayEvent.displayEvents.append(e)
            f.close()
            spreadsheetController.postEventToSpreadsheet(batchDisplayEvent)
compute() -> None
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/packages/spreadsheet/widgets/svg/svg.py/SVGSplitter.compute