def getVersion(self, instanceId):
        cu = self.db.cursor()
        cu.execute("""SELECT version, timeStamps FROM Instances
                      INNER JOIN Versions ON
                            Instances.versionId = Versions.versionId
                      WHERE instanceId=?""", instanceId)
        try:
            (s, t) = cu.next()
            ts = [ float(x) for x in t.split(":") ]
            v = versions.VersionFromString(s, timeStamps=ts)
            return v
        except __HOLE__:
            raise KeyError, instanceId
dataset/ETHPy150Open sassoftware/conary/conary/local/sqldb.py/DBInstanceTable.getVersion