Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
This is a bit of a hack to force wsgi applications to start the response without generating the whole response...

        def regenerate(generator):
    """
    This is a bit of a hack to force wsgi applications to start the response without generating the whole response...
    """
    tg = type(generator)
    if tg is types.ListType or tg is types.TupleType:
        return generator
    generator = iter(generator)
    current_element = generator.next()
    return regenerate1(generator, current_element)
        


src/w/h/whiff-1.1/whiff/middleware/wrapIfHtml.py   whiff(Download)
        # convert to list to force call to start_response
        #pageContentList = list(pageContentSequence)
        pageContentGenerator = misc.regenerate(pageContentSequence)
        content_type = self.content_type
        if content_type is None: