Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/w/h/whiff-1.1/whiff/middleware/EvalPageFunction.py   whiff(Download)
            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]
            #rUrl = env[whiffenv.ENTRY_POINT]
            #pr "EvalPageFunction using template path as relative url", env[whiffenv.TEMPLATE_PATH]
            rUrl = "/"+"/".join(env[whiffenv.TEMPLATE_PATH])

src/w/h/whiff-1.1/whiff/middleware/IfJavascriptUrl.py   whiff(Download)
    def __call__(self, env, start_response):
        env = resolver.process_cgi(env, parse_cgi=True)
        url = self.param_value(self.url, env).strip()
        relative_url = env[whiffenv.TEMPLATE_PATH]
        javaScriptEnabled = whiffenv.cgiGet(env, "javaScriptEnabled", False)

src/w/h/whiff-1.1/whiff/middleware/callTemplate.py   whiff(Download)
        if root is None:
            raise ValueError, "cannot resolve template: no root bound in environment"
        rpath = env.get(whiffenv.TEMPLATE_PATH)
        # resolve relative path
        if rpath and not path.startswith("/"):

src/w/h/whiff-1.1/whiff/middleware/absPath.py   whiff(Download)
        #pr "absPath unrelativizing", repr(relativePath)
        root = env[whiffenv.ROOT]
        template_path = env.get(whiffenv.TEMPLATE_PATH)
        result = root.absolute_path(relativePath, template_path, clean=False)
        #pr "absPath got", repr(result)