Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
evaluate a require, which may be a sub-stream or a page

src/w/h/whiff-1.1/whiff/middleware/NumericRange.py   whiff(Download)
    def validate(self, env):
        env = resolver.process_cgi(env, parse_cgi=True)
        minValue = self.param_value(self.minValue, env)
        maxValue = self.param_value(self.maxValue, env)
        minValue = self.convert(minValue, env)
        maxValue = self.convert(maxValue, env)
        #pr "numeric range", (minValue, maxValue)
        if maxValue is not None and minValue is not None and maxValue<minValue:
            raise ValueError, "max value is smaller than min value "+repr((maxValue, minValue))
        envMessageKey = self.param_value(self.envMessageKey, env)