Did I find the right examples for you? yes no

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

        def check_environment(env):
    (test, message) = check_environment_message(env)
    if not test:
        raise BadEnvironmentName, message
    return message
        


src/w/h/whiff-1.1/whiff/resolver.py   whiff(Download)
            #pr "in __call__ variable = ", env.get("variable")
            env = modifiedEnvironment(env)
            whiffenv.check_environment(env)
            env = self.update_environment(env)
            #pr "WsgiComponent calling whiff_call", id(self), self

src/w/h/whiff-1.1/whiff/page.py   whiff(Download)
    def add_environment_dict(self, dict):
        if dict.get(whiffenv.RPC_TAINTED, True) != True:
            raise ValueError, "Security: whiff directive cannot unset environment taint mark "+repr(whiffenv.RPC_TAINTED)
        whiffenv.check_environment(dict)
        self.overrides.update(dict)