Did I find the right examples for you? yes no

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

        def relativeEnvironment(env, relativeUrl):
    result = env.copy()
    result["SCRIPT_NAME"] = relativeUrl
    result["PATH_INFO"] = ""
    result[whiffenv.ENTRY_POINT] = relativeUrl
    return result
        


src/w/h/whiff-1.1/whiff/middleware/GetPageLink.py   whiff(Download)
        if self.expandRelativeTo:
            rurl = cgi_dictionary["relativeURL"] = self.param_value(self.expandRelativeTo, env)
            env = expandPostedTemplate.relativeEnvironment(env, rurl)
        elif env.has_key(whiffenv.ENTRY_POINT):
            cgi_dictionary["relativeURL"] = env[whiffenv.ENTRY_POINT]

src/w/h/whiff-1.1/whiff/middleware/getPage.py   whiff(Download)
        outer_arguments = self.whiff_outer_arguments
        if relativeUrl is not None:
            env = expandPostedTemplate.relativeEnvironment(env, relativeUrl)
            responding_path = relativeUrl.split("/")
            path_remainder = []

src/w/h/whiff-1.1/whiff/middleware/EvalPageFunction.py   whiff(Download)
            #pr "eval page setting relative url", repr(rUrl)
            relativeUrl = jsonParse.formatString(rUrl)
            env = expandPostedTemplate.relativeEnvironment(env, rUrl)
        elif env.has_key(whiffenv.TEMPLATE_PATH):
            ##pr "EvalPageFunction using whiff entry point as relative url", env[whiffenv.ENTRY_POINT]