Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
similar to {{get-id name}}default{{/get-id}} but for python programs

        def getId(env, name=None, default=None):
    "similar to {{get-id name}}default{{/get-id}} but for python programs"
    relative_name = getName(env, name)
    return env.get(relative_name, default)

src/w/h/whiff-1.1/whiff/servers/fsCSI/fsCSIroot/prepareData.py   whiff(Download)
        any = ""
        env = env.copy()
        results = whiffenv.getId(env, "results")
        if not results:
            raise ValueError, "results environment entry missing"

src/w/h/whiff-1.1/whiff/middleware/sortTable.py   whiff(Download)
    def __call__(self, env, start_response):
        env = resolver.process_cgi(env, parse_cgi=True)
        cgi_parameters = env[whiffenv.CGI_DICTIONARY]
        data = whiffenv.getId(env, "Data")
        sort_cols = cgi_parameters.get("sort_col")