Module Expr Str ImportFrom alias ImportFrom alias Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore BoolOpOr BoolOpAnd NameLoad AttributeLoad NameLoad attr Lambda arguments args NameParam defaults NameLoad Assign NameStore BoolOpOr BoolOpAnd NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr Str If CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Call NameLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Return Call NameLoad BinOpMod Str Call NameLoad keyword BinOpMod Str TupleLoad NameLoad NameLoad keyword BinOpMod Str TupleLoad NameLoad NameLoad keyword Call NameLoad Dict Str Str Str Dict Str Str Str Str Str Str Str Str Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Call NameLoad Dict Str Str Str Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareEq SubscriptLoad NameLoad Index Num Str body Return NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq NameLoad Str body Raise Call NameLoad Str If CompareEq NameLoad Str body Raise Call NameLoad Str If CompareEq NameLoad Str body Raise Call NameLoad Str Return NameLoad decorator_list
N/A N/A 
    fungiform.recaptcha
    ~~~~~~~~~~~~~~~~~~~

    Recaptcha support.

    :copyright: (c) 2010 by the Fungiform Team.
    :license: BSD, see LICENSE for more details.
 fungiform.utils Markup urllib urlencode N/A urllib2 N/A N/A simplejson dumps N/A N/A N/A ImportError N/A N/A N/A json dumps N/A N/A N/A ImportError N/A dumps N/A N/A x N/A N/A N/A N/A RuntimeError for captcha support, simplejson has to be installed. N/A N/A API_SERVER http://api.recaptcha.net/ N/A SSL_API_SERVER https://api-secure.recaptcha.net/ N/A VERIFY_SERVER http://api-verify.recaptcha.net/verify get_recaptcha_html N/A N/A public_key use_ssl error translations N/A None True None None N/A N/A Returns the recaptcha input HTML. N/A _ N/A N/A translations N/A translations ugettext N/A N/A N/A x N/A x N/A server N/A N/A use_ssl API_SERVER SSL_API_SERVER N/A options N/A dict k N/A N/A public_key encode utf-8 N/A N/A error None N/A N/A N/A options N/A error N/A N/A N/A unicode error encode utf-8 N/A query N/A urlencode options N/A N/A Markup N/A 
    <script type="text/javascript">var RecaptchaOptions = %(options)s;</script>
    <script type="text/javascript" src="%(script_url)s"></script>
    <noscript>
      <div><iframe src="%(frame_url)s" height="300" width="500"></iframe></div>
      <div><textarea name="recaptcha_challenge_field"
                     rows="3" cols="40"></textarea>
      <input type="hidden" name="recaptcha_response_field"
             value="manual_challenge"></div>
    </noscript>
     N/A dict script_url N/A %schallenge?%s N/A server query frame_url N/A %snoscript?%s N/A server query options N/A dumps N/A theme custom_translations clean N/A visual_challenge audio_challenge refresh_btn instructions_visual instructions_audio help_btn play_again cant_hear_this incorrect_try_again N/A _ Get a visual challenge N/A _ Get an audio challenge N/A _ Get a new challenge N/A _ Type the two words: N/A _ Type what you hear: N/A _ Help N/A _ Play sound again N/A _ Download sound as MP3 N/A _ Incorrect. Try again. N/A validate_recaptcha N/A N/A private_key challenge response remote_ip N/A N/A N/A Validates the recaptcha.  If the validation fails
    a `RecaptchaValidationFailed` error is raised.
     N/A request N/A N/A urllib2 Request VERIFY_SERVER data N/A urlencode N/A privatekey remoteip challenge response N/A N/A private_key encode utf-8 N/A N/A remote_ip encode utf-8 N/A N/A challenge encode utf-8 N/A N/A response encode utf-8 N/A response N/A N/A urllib2 urlopen request N/A rv N/A N/A N/A N/A response read splitlines N/A N/A N/A response close N/A N/A rv N/A N/A rv N/A 0 true N/A N/A True N/A N/A N/A len rv 1 N/A N/A error N/A rv N/A 1 N/A N/A error invalid-site-public-key N/A N/A N/A RuntimeError invalid public key for recaptcha set N/A N/A error invalid-site-private-key N/A N/A N/A RuntimeError invalid private key for recaptcha set N/A N/A error invalid-referrer N/A N/A N/A RuntimeError key not valid for the current domain N/A False N/A