def upgrade_environment(self, db): db = db or self.env.get_db_cnx() do_upgrade(self.env, db, get_version(db)) db.commit()
def environment_needs_upgrade(self, db): db_ver = get_version(db) return db_ver < [int(i) for i in __version__.split('.')]