def index(self, environ): rv = "" for k, v in coev.stats().items(): rv += "coev.{0}={1}\n".format(k, v) for k, v in self.ext_data.items(): rv += "{0}={1}\n".format(k, v) return rv
def overload(self): threshold = coev.stats()["coevs.used"] + self.accept_limit_window return threshold > self.accept_concurrency_limit