def setResolutionList(self, t):
        self.dbCheck()
        with self.env.db_transaction as db:
            db("DELETE FROM enum WHERE type='resolution'")
            for value, name in t:
                db("INSERT INTO enum (type, name, value) VALUES (%s, %s, %s)",
                   ("resolution", name, value))
Remove all resolutions, set them to `t` (index, name)
dataset/ETHPy150Open edgewall/trac/contrib/sourceforge2trac.py/TracDatabase.setResolutionList