(req, id)
return apache.OK
Generate an image for the CAPTCHA with the given ID string
Generate an image for the CAPTCHA with the given ID string
Generate an image for the CAPTCHA with the given ID string
def image(req, id):
    """Generate an image for the CAPTCHA with the given ID string"""
    test = _getFactory(req).get(id)
    if not test:
        raise apache.SERVER_RETURN, apache.HTTP_NOT_FOUND
    req.content_type = "image/jpeg"
    test.render().save(req, "JPEG")
    return apache.OK
def image ( req , id ) : test = _getFactory ( req ) . get ( id ) if not test : raise apache . SERVER_RETURN , apache . HTTP_NOT_FOUND req . content_type = "image/jpeg" test . render ( ) . save ( req , "JPEG" ) return apache . OK