Did I find the right examples for you? yes no

All Samples(19)  |  Call(19)  |  Derive(0)  |  Import(0)
return name relative to cgi_prefix

        def getName(env, n=None):
    "return name relative to cgi_prefix"
    if n is None:
        n = env.get(NAME)
    p = env.get(FULL_CGI_PREFIX)
    if p is None:
        return n
    if n is None:
        return p
    return p+n
        


src/w/h/whiff-1.1/whiff/middleware/png/ERdiagram.py   whiff(Download)
        if javascript:
            # xxxx something should be done about hard coded constants here
            imageId = str(whiffenv.getName(env, "ERDiagram"))
            callbackFunction = str(whiffenv.getName(env, "ERDiagramCallBack"))
            imagedata = c.dumpJavascript(None, imageId, callbackFunction)
            entitiesName = str(whiffenv.getName(env, "EREntities"))
            relationshipsName = str(whiffenv.getName(env, "ERRelationships"))
            attributesName = str(whiffenv.getName(env, "ERAttributes"))

src/w/h/whiff-1.1/whiff/middleware/addCommentsFromResource.py   whiff(Download)
        error = self.param_value(self.error, env)
        variable = self.param_value(self.variable, env)
        commentsName = whiffenv.getName(env, variable)
        countName = whiffenv.getName(env, defaultCountName)
        name = email = comment = None
            env[whiffenv.CGI_DICTIONARY] = cgi_parameters
        if error:
            errorName = whiffenv.getName(env, defaultErrorName)
            #pr "flagging error", (errorName, error)
            env[errorName] = "Error recording comment: "+error

src/w/h/whiff-1.1/whiff/middleware/loadList.py   whiff(Download)
    def __call__(self, env, start_response):
        dataName = self.param_value(self.dataName, env)
        name = whiffenv.getName(env, dataName)
        data = env[name]
        [dictionaries, previous, next, close] = data
            positioner = source
        dataName = self.param_value(self.dataName, env)
        name = whiffenv.getName(env, dataName)
        sourceAction = self.param_value(self.sourceAction, env)
        prefix = self.param_value(self.prefix, env)

src/w/h/whiff-1.1/whiff/middleware/png/SchemaDiagram.py   whiff(Download)
        if javascript:
            # XXXX hard coded constants...
            imageId = str(whiffenv.getName(env, "Schema"))
            callbackFunction = str(whiffenv.getName(env, "SchemaCallBack"))
            imagedata = c.dumpJavascript(None, imageId, callbackFunction)
            tablesName = str(whiffenv.getName(env, "Tables"))

src/w/h/whiff-1.1/whiff/middleware/heading.py   whiff(Download)
            #headerList = list(headerList)
            pass
        headerName = whiffenv.getName(env, "Header%s" % len(headerList))
        headerLevel = int(env.get(variable, "3"))
        # record the level and the text of the header in the accumulator

src/w/h/whiff-1.1/whiff/middleware/dictsToSequences.py   whiff(Download)
        variable = self.param_value(self.variable, env)
        variable = variable.strip()
        relativeVariable = whiffenv.getName(env, variable)
        env = env.copy()
        sequences = [ [ dict.get(name) for name in names ] for dict in dicts ]

src/w/h/whiff-1.1/whiff/middleware/ifdef.py   whiff(Download)
        if not variable:
            # look in environment
            variable = whiffenv.getName(env) #env.get(whiffenv.NAME)
            if not variable:
                raise ValueError, "ifdef: variable not specified and %s not found in environment" % (whiffenv.NAME,)

src/w/h/whiff-1.1/whiff/middleware/undef.py   whiff(Download)
        if not variable:
            # look for NAME in env
            variable = whiffenv.getName(env)
            if not variable:
                raise ValueError, "undef: variable not specified and and %s not found in environment" % (whifenv.NAME,)

src/w/h/whiff-1.1/whiff/middleware/setInnerHtml.py   whiff(Download)
        if not name:
            # look in environment for default name
            name = whiffenv.getName(env)
        if not name:
            # default to use the current {{id/}}