Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/k/i/king-louie-0.0.1/louie/validaton.py   king-louie(Download)
from werkzeug.wrappers import Request
 
from .globals import session, request
from .util import issue
 
    def _f(key, val):
        if len(val) < min_len:
            issue(ValidationIssue(key,'input.too.short',min_len))
            return False, None
        elif max_len != -1 and len(val) > max_len:
            issue(ValidationIssue(key,'input.too.long',max_len))