Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
checks return json values (success, varname, message) where success is true or false
and message if not null is an error message string. and varname is a variable to store
the message in the environment.

src/w/h/whiff-1.1/whiff/middleware/NumericRange.py   whiff(Download)
    r = NumericRange("TESTVAR", "0", "100")
    v = Validate.__middleware__("WRONG PAGE", r, "right page")
    sresult = v(env, misc.ignore)
    result = "".join(list(sresult))
    print "numeric range test results"
    print result
    r = NumericRange("TESTVAR", "5", "100")
    v = Validate.__middleware__("right page", r, "WRONG PAGE")