Exemplo n.º 1
0
 def decodeChoice(self, opts, id, choice):
     if opts == '__track__':
         tn = str(choice).split(':')
         GalaxyInterface.cleanUpTrackName(tn)
         choice = ':'.join(tn)
     else:
         choice = super(HyperBrowserControllerMixin, self).decodeChoice(opts, id, choice)
     return choice
Exemplo n.º 2
0
    def getInputValueForTrack(self, id, name):
        try:
            # assert False
            cachedTracks = self.getCacheData(id)
            track = self.getTrackElement(id, name, tracks=cachedTracks)
        except:
            print 'track cache is empty'
            track = self.getTrackElement(id, name)
            self.putCacheData(id, track.tracks)

        self.trackElements[id] = track
        tn = track.definition(False)
        GalaxyInterface.cleanUpTrackName(tn)
        val = ':'.join(tn)
        # val = track.asString()
        return val