Did I find the right examples for you? yes no

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

src/w/h/whiff-1.1/whiff/middleware/pageToUrl.py   whiff(Download)
    def __call__(self, env, start_response):
        urlBase = self.param_value(self.urlBase, env)
        sr = StartResponseCatcher()
        content = self.param_value(self.page, env, sr.start_response)
        cgiDict = sr.cgiParameters(content)

src/w/h/whiff-1.1/whiff/middleware/newProfile.py   whiff(Download)
    def __call__(self, env, start_response):
        user = self.param_value(self.user, env)
        password = self.param_value(self.password, env)
        password2 = self.param_value(self.password2, env)
        userVariable = self.param_value(self.userVariable, env)
        passwordVariable = self.param_value(self.passwordVariable, 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:
            pageText = self.param_text(self.page)
        showFunction = self.param_value(self.showFunction, env).strip()
        hideFunction = self.param_value(self.hideFunction, env).strip()
        showFunction = self.param_value(self.showFunction, env).strip()
        javascript = self.param_value(self.javascript, env)
        showFunction = self.param_value(self.showFunction, env).strip()
        javascript = self.param_value(self.javascript, env)
        hideJavascript = self.param_value(self.hideJavascript, env)
        popupId = self.param_value(self.popupId, env).strip()
        positionId = self.param_value(self.positionId, env).strip()
        """ % (pageText, popupId)
        loadApp = EvalPageFunction.evalPageFunction(setHtmlText, asynchronous=asynchronous)
        loadFn = self.param_value(loadApp, env)
        showFn = """
        (function (x,y) {

src/w/h/whiff-1.1/whiff/middleware/checkProfile.py   whiff(Download)
    def __call__(self, env, start_response):
        # find user and password, put them in environment
        storeSession = True
        env = env.copy()
        userVariable = self.param_value(self.userVariable, env)
        passwordVariable = self.param_value(self.passwordVariable, env)
        errorVariable = self.param_value(self.errorVariable, env)
        user = password = None
        if self.user:
            user = self.param_value(self.user, env)
            user = user.strip()
            #pr "user from params", user
            env[userVariable] = user                        
        if self.password:
            password = self.param_value(self.password, env)
            password = password.strip()
            #pr "password from params", password

src/w/h/whiff-1.1/whiff/middleware/redirect.py   whiff(Download)
    def __call__(self, env, start_response):
        from whiff import resolver # avoid circularity problem
        relative = self.param_json(self.relative, env)
        # no double slashes at start of location
        location = self.param_value(self.location, env) #str(self.location)
        while location.startswith("//"):
            location = location[1:]
        status = self.param_value(self.status, env) #str(self.status)
        page = self.param_value(self.page, env)

src/w/h/whiff-1.1/whiff/middleware/format.py   whiff(Download)
            raise ValueError, "format requires a dictionary argument"
        # allow the page to start the response
        pageText = self.param_value(self.page, env, start_response)
        substitutedText = pageText % d
        return [substitutedText]

src/w/h/whiff-1.1/whiff/middleware/InsecureAuthorize.py   whiff(Download)
            env = env.copy()
            # store the authorization user name in the environment
            uservar = self.param_value(self.uservar, env)
            env[uservar] = self.user
            # return the successpage

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)

src/w/h/whiff-1.1/whiff/middleware/diff.py   whiff(Download)
    def __call__(self, env, start_response):
        fromText = self.param_value(self.fromText, env)
        toText = self.param_value(self.toText, env)
        fromName = self.param_value(self.fromName, env)
        toName = self.param_value(self.toName, 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)
        else:
            new_value = self.param_value(self.value, env)

  1 | 2 | 3 | 4 | 5 | 6  Next