def getMapInstance( self ): iMap = Map() lAttributes = [] lAttributes.append( self.name ) lAttributes.append( self.seqname ) lAttributes.append( self.start ) lAttributes.append( self.end ) iMap.setFromTuple( lAttributes ) return iMap
def setFromTuple(self, tuple): self.id = int(tuple[0]) Map.setFromTuple(self, tuple[1:])