Did I find the right examples for you? yes no

All Samples(74)  |  Call(74)  |  Derive(0)  |  Import(0)
try to interpret require as a json value (list or dict)

src/w/h/whiff-1.1/whiff/middleware/putResource.py   whiff(Download)
    def __call__(self, env, start_response):
        resourcePathList = self.param_json(self.path, env)
        # disallow "puts" to all resources except "local"
        if len(resourcePathList)>0 and resourcePathList[0]!="local":
            assert not whiffenv.rpc_tainted(env), "security violation: can't put non-local resource from tainted environment "+repr(resourcePathList)
        as_json = self.param_json(self.as_json, env)
        #resource_value = root.getResource(resourcePathList)
        if as_json:
            new_value = self.param_json(self.value, env)

src/w/h/whiff-1.1/whiff/middleware/PopUpJS.py   whiff(Download)
    def __call__(self, env, start_response):
        expandPage = self.param_json(self.expandPage, env)
        if expandPage:
            pageText = self.param_value(self.page, env)
        else:
        popupId = self.param_value(self.popupId, env).strip()
        positionId = self.param_value(self.positionId, env).strip()
        asynchronous = self.param_json(self.asynchronous, env)
        setHtmlText = """
        {{include "whiff_middleware/setInnerHtml"}}

src/w/h/whiff-1.1/whiff/middleware/InsecureAuthorize.py   whiff(Download)
                        #pr "got user and password from cookie data"
        # check whether the user is known and the password matches
        auth = self.param_json(self.authorizations, env)
        #pr "FOUND USER AND PASSWORD", (self.user, self.password)
        if auth.has_key(self.user) and auth[self.user]==self.password:

src/w/h/whiff-1.1/whiff/middleware/skimpy.py   whiff(Download)
    def __call__(self, env, start_response):
        #pr; #pr "skimpy entered at", time.time()
        secretPath = self.param_json(self.secretPath, env)
        variable = self.param_value(self.variable, env)
        variable = resolver.local_cgi_name(variable, env)
        imgflag = self.param_value(self.imgflag, env)
        timeoutPath = self.param_json(self.timeoutPath, env)
        cookiename = self.param_value(self.cookiename, env)
        captchaPath = self.param_json(self.captchaPath, env)

src/w/h/whiff-1.1/whiff/middleware/repeat.py   whiff(Download)
                sequence = env[datavariable]
            elif self.defaultvalue:
                sequence = self.param_json(self.defaultvalue, env)
            else:
                raise KeyError, "no such environment entry "+repr(datavariable)
        #pr "repeating", datavariable
        #pr "sequence before json conversion"
        #pr sequence
        sequence = self.param_json(sequence, env)

src/w/h/whiff-1.1/whiff/middleware/putEnvironment.py   whiff(Download)
    def __call__(self, env, start_response):
        name = self.param_value(self.name, env)
        if name.startswith("whiff"):
            assert not whiffenv.rpc_tainted(env), "security: computed env whiff.* names disallowed for rpc's"
        as_json = self.param_json(self.as_json, env)
        if as_json:
            new_value = self.param_json(self.value, env)

src/w/h/whiff-1.1/whiff/middleware/treeToDictionary.py   whiff(Download)
    def __call__(self, env, start_response):
        toResource = self.param_json(self.toResource, env)
        inDict = self.param_json(self.page, env)
        (outDict, rootname) = self.translate(inDict)
        if toResource is not None:

src/w/h/whiff-1.1/whiff/middleware/getResource.py   whiff(Download)
    def __call__(self, env, start_response):
        resourcePathList = self.param_json(self.page, env)
        # prevent tainted access to non-local resources
        if resourcePathList and resourcePathList[0]!="local":
            assert not whiffenv.rpc_tainted(env), "security violation: can't get resource from tainted environment"
        as_json = self.param_json(self.as_json, env)

src/w/h/whiff-1.1/whiff/middleware/dictsToSequences.py   whiff(Download)
    def __call__(self, env, start_response):
        names = self.param_json(self.names, env)
        dicts = self.param_json(self.dicts, env)
        variable = self.param_value(self.variable, env)
        variable = variable.strip()

src/w/h/whiff-1.1/whiff/middleware/newProfile.py   whiff(Download)
        passwordVariable = self.param_value(self.passwordVariable, env)
        errorVariable = self.param_value(self.errorVariable, env)
        sessionResourcePath = self.param_json(self.sessionResourcePath, env)
        profileResourcePrefix = self.param_json(self.profileResourcePrefix, env)
        env = env.copy()

  1 | 2 | 3 | 4  Next