Did I find the right examples for you? yes no

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

src/w/h/whiff-1.1/whiff/middleware/putResource.py   whiff(Download)
        gateway.putResource(env, resourcePathList, new_value)
        # deliver an empty page
        return self.deliver_page("", env, start_response)
__middleware__ = putResource

src/w/h/whiff-1.1/whiff/middleware/putEnvironment.py   whiff(Download)
        env[name] = new_value
        # deliver an empty page
        return self.deliver_page(self.page, env, start_response)
__middleware__ = putEnvironment

src/w/h/whiff-1.1/whiff/middleware/treeToDictionary.py   whiff(Download)
            # store dict at resource and return empty string
            gateway.putResource(env, toResource, outDict)
            return self.deliver_page("", env, start_response)
            # return dict as encoded as json

src/w/h/whiff-1.1/whiff/middleware/session.py   whiff(Download)
        env[variable] = newId
        # deliver the wrapped page.
        return self.deliver_page(self.page, env, new_start_response)
    def my_start_response_function(self, start_response, cookie, newId):

src/w/h/whiff-1.1/whiff/middleware/getResource.py   whiff(Download)
            return self.deliver_json(resource_value, env, start_response)
            return self.deliver_page(resource_value, env, start_response)
__middleware__ = getResource

src/w/h/whiff-1.1/whiff/middleware/dictsToSequences.py   whiff(Download)
        sequences = [ [ dict.get(name) for name in names ] for dict in dicts ]
        env[relativeVariable] = sequences
        return self.deliver_page(self.page, env, start_response)
__middleware__ = dictsToSequences

src/w/h/whiff-1.1/whiff/middleware/mako/MakoText.py   whiff(Download)
        mytemplate = Template(makoTemplateText)
        result = mytemplate.render(**D)
        return self.deliver_page(result, env, start_response)
__middleware__ = MakoText

src/w/h/whiff-1.1/whiff/middleware/logoutProfile.py   whiff(Download)
        env[userVariable] = ""
        gateway.putResource(env, sessionResourcePath+[userVariable], "")
        return self.deliver_page(self.page, env, start_response)
__middleware__ = logoutProfile

src/w/h/whiff-1.1/whiff/middleware/base64DataUrl.py   whiff(Download)
        assert content_type is not None, "no content type for payload"
        url = "data:%s;base64,%s" % (content_type, b64data)
        return self.deliver_page(url, env, start_response)
__middleware__ = base64DataUrl

src/w/h/whiff-1.1/whiff/middleware/insertIfNeeded.py   whiff(Download)
                # the text is needed and not done: mark it as done and deliver the text
                gateway.putResource(env, donePath, True)
                return self.deliver_page(self.text, env, start_response)
        # if we get here, don't do anything and deliver empty string
        return self.deliver_page("", env, start_response)

  1 | 2 | 3 | 4 | 5  Next