Module ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias identifier alias identifier ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str ListLoad Str Str Str Str Str ListLoad Str Str Str Str Str Str Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str Str ListLoad Str Str Str Str Str Str Str Str ListLoad Str Str Str Str Str Str Str ListLoad Str Str Assign NameStore ListLoad Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Assign NameStore Dict Str Str TupleLoad Str Str Str Str TupleLoad Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr NameLoad body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr NameLoad body Pass TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Return NameLoad If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpAnd NameLoad AttributeLoad NameLoad attr body Return NameLoad Return NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str ImportFrom alias Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad If NameLoad body While Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str keyword NameLoad keyword ListLoad AttributeLoad NameLoad attr Return Dict Str Str Str NameLoad NameLoad AttributeLoad NameLoad attr ImportFrom alias Return Dict Str Str Str NameLoad NameLoad Call NameLoad Call NameLoad Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults ListLoad Dict body Expr Str If CompareNotIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Return TupleLoad NameLoad Dict Str NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore Dict Assign NameStore Str For NameStore NameLoad body If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore NameLoad If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad If BoolOpAnd NameLoad CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index NameLoad orelse If CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index Str NameLoad For NameStore Call AttributeLoad NameLoad attr body If CompareNotIn NameLoad NameLoad body Delete SubscriptDel NameLoad Index NameLoad For NameStore NameLoad body If BoolOpAnd CompareIn NameLoad NameLoad CompareNotIn SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad body Delete SubscriptDel NameLoad Index NameLoad If BoolOpAnd CompareIn Str NameLoad CompareIsNot SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Return TupleLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad kwarg body Expr Str Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad keyword NameLoad keyword BoolOpOr NameLoad NameLoad keyword BoolOpOr NameLoad NameLoad keyword BoolOpOr NameLoad NameLoad keyword NameLoad keyword NameLoad NameLoad decorator_list AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod NameLoad NameLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Str If CompareIn Str NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Num If CompareNotEq NameLoad Str body Assign NameStore BinOpAdd Str Call AttributeLoad NameLoad attr Str Str If BoolOpAnd CompareEq NameLoad Str CompareNotEq NameLoad Str body If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Return BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Str If UnaryOpNot SubscriptLoad NameLoad Index Str body AugAssignAdd NameStore Call AttributeLoad Str attr keyword Call NameLoad Str If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Return Call AttributeLoad Str attr keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpMod Call NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Return NameLoad Return Call NameLoad AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpMod Call NameLoad Str NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num orelse Assign NameStore SubscriptLoad SubscriptLoad Call NameLoad AttributeLoad NameLoad attr Index Str Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return BinOpMod NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Return NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign NameStore Str orelse Return BinOpMod Call NameLoad Str NameLoad Return Call NameLoad NameLoad Dict Str NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults ListLoad body Expr Str Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Dict Str Str Call NameLoad AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Dict Str Str Call NameLoad AttributeLoad NameLoad attr Str Assign NameStore Str If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Return Call NameLoad Str Dict Str Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Str Dict Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return BinOpAdd AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Return CompareIn NameLoad ListLoad Str Str Str decorator_list
N/A os.path basename urlparse urlparse parse_qs django.conf settings django.template.loader render_to_string django.utils.translation ugettext_lazy _lazy ugettext _ wikimarkup.parser Parser ALLOWED_TAGS kitsune.gallery.models Image Video kitsune.sumo email_utils kitsune.sumo.urlresolvers reverse N/A ALLOWED_ATTRIBUTES N/A a div h1 h2 h3 h4 h5 h6 li span img video source N/A href title class rel data-mozilla-ui-reset N/A id class style data-for title data-target data-modal N/A id N/A id N/A id N/A id N/A id N/A id N/A class N/A class data-for N/A class src data-original-src alt title height width style N/A height width controls data-fallback poster data-width data-height N/A src type N/A ALLOWED_STYLES N/A vertical-align N/A IMAGE_PARAMS N/A alt align caption valign frame page link width height N/A IMAGE_PARAM_VALUES N/A align valign N/A none left center right N/A baseline sub super top text-top middle bottom text-bottom N/A VIDEO_PARAMS N/A height width modal title placeholder N/A YOUTUBE_PLACEHOLDER YOUTUBE_EMBED_PLACEHOLDER_%s wiki_to_html N/A N/A wiki_markup locale nofollow N/A N/A settings WIKI_DEFAULT_LANGUAGE True N/A N/A Wiki Markup -> HTML N/A N/A N/A N/A WikiParser parse wiki_markup show_toc False locale locale nofollow nofollow N/A get_object_fallback N/A N/A cls title locale default N/A None kwargs N/A N/A Return an instance of cls matching title and locale, or fall
    back to the default locale.

    When falling back to the default locale, follow any wiki redirects
    internally.

    If the fallback fails, the return value is `default`.

    You may pass in additional kwargs which go straight to the query.

     N/A N/A N/A N/A N/A N/A cls objects get title title locale locale kwargs N/A N/A N/A N/A N/A cls DoesNotExist IOError N/A N/A N/A N/A N/A default_lang_doc N/A N/A N/A cls objects get title title locale N/A settings WIKI_DEFAULT_LANGUAGE kwargs N/A N/A hasattr default_lang_doc translated_to N/A N/A trans N/A N/A default_lang_doc translated_to locale N/A N/A trans N/A trans current_revision N/A N/A trans N/A N/A hasattr default_lang_doc redirect_document N/A N/A target N/A N/A default_lang_doc redirect_document N/A target N/A N/A trans N/A N/A target translated_to locale N/A N/A trans N/A trans current_revision N/A N/A trans N/A default_lang_doc N/A N/A N/A N/A N/A cls DoesNotExist IOError N/A N/A default N/A _get_wiki_link N/A N/A title locale N/A N/A N/A Checks the page exists, and returns its URL or the URL to create it.

    Return value is a dict: {'found': boolean, 'url': string}.
    found is False if the document does not exist.

     kitsune.wiki.models Document N/A d N/A get_object_fallback Document locale locale title title is_template False N/A d N/A N/A N/A N/A d redirect_document N/A N/A d N/A N/A d redirect_document N/A url N/A reverse wiki.document locale locale args N/A N/A d slug N/A N/A found url text True url N/A d title kitsune.sumo.templatetags.jinja_helpers urlparams N/A N/A found text url False title N/A urlparams N/A reverse wiki.new_document locale locale title title N/A build_hook_params N/A N/A string locale allowed_params allowed_param_values N/A N/A N/A N/A N/A Parses a string of the form 'some-title|opt1|opt2=arg2|opt3...'

    Builds a list of items and returns relevant parameters in a dict.

     N/A N/A | string N/A N/A string N/A N/A string strip N/A N/A string N/A alt string N/A items N/A N/A N/A i strip N/A i N/A N/A string split | N/A title N/A N/A items pop 0 N/A params N/A N/A last_item N/A item items N/A N/A N/A = item N/A N/A N/A param value N/A N/A item split = 1 N/A N/A params N/A param value N/A N/A N/A params N/A item True N/A last_item item N/A N/A caption allowed_params N/A N/A N/A params N/A caption title N/A N/A last_item N/A last_item allowed_params N/A N/A N/A params N/A caption N/A N/A items pop N/A N/A params N/A last_item N/A N/A N/A last_item caption N/A N/A N/A params N/A caption last_item N/A p N/A N/A params keys N/A N/A N/A p allowed_params N/A N/A N/A params N/A p N/A p allowed_param_values N/A N/A N/A N/A p params N/A N/A params N/A p N/A allowed_param_values N/A p N/A N/A N/A params N/A p N/A N/A N/A page params N/A N/A params N/A page True N/A N/A link N/A _get_wiki_link N/A params N/A page locale N/A N/A params N/A link N/A link N/A url N/A N/A params N/A found N/A link N/A found N/A N/A title params N/A WikiParser N/A Parser N/A N/A Wrapper for wikimarkup which adds Kitsune-specific callbacks
    and setup.
     N/A image_template wikiparser/hook_image.html __init__ N/A N/A self base_url N/A None N/A N/A N/A N/A N/A super WikiParser self __init__ base_url N/A N/A N/A self registerInternalLinkHook None N/A self _hook_internal_link N/A N/A N/A self registerInternalLinkHook Image N/A self _hook_image_tag N/A N/A N/A self registerInternalLinkHook Video N/A self _hook_video N/A N/A N/A self registerInternalLinkHook V N/A self _hook_video N/A N/A N/A self registerInternalLinkHook Button N/A self _hook_button N/A N/A self youtube_videos N/A N/A parse N/A N/A self text show_toc tags attributes styles locale nofollow youtube_embeds N/A None None None None N/A settings WIKI_DEFAULT_LANGUAGE False True kwargs N/A N/A Given wiki markup, return HTML.

        Pass a locale to get all the hooks to look up Documents or
        Media (Video, Image) for that locale. We key Documents by
        title and locale, so both are required to identify it for a
        e.g. link.

        Since py-wikimarkup's hooks don't offer custom paramters for
        callbacks, we're using self.locale to keep things simple.

        :arg text: the text to parse
        :arg show_toc: should we show a table of contents?
        :arg tags: the allowed html tags
        :arg attributes: the allowed html attributes
        :arg styles: the allowed css styles
        :arg locale: the locale to use
        :arg nofollow: should links have nofollow set?
        :arg youtube_embeds: should we replace the youtube placeholders
            with the iframes? This is kind of a hack so that subclasses
            can skip embedding here and do it on their own at the end
            of parsing.
         N/A N/A self locale locale N/A tags N/A N/A N/A kwargs N/A tags tags _parse N/A N/A locale N/A N/A N/A N/A N/A N/A super WikiParser self parse text show_toc show_toc tags N/A tags ALLOWED_TAGS attributes N/A attributes ALLOWED_ATTRIBUTES styles N/A styles ALLOWED_STYLES nofollow nofollow strip_comments True kwargs N/A N/A email_utils safe_translation N/A html N/A _parse locale N/A youtube_embeds N/A N/A html N/A N/A self add_youtube_embeds html N/A html N/A add_youtube_embeds N/A N/A self html N/A N/A N/A Insert youtube embeds.

        We need to play this placeholder replacement game because we don't
        allow iframes in the rendered content.
         N/A video_id N/A self youtube_videos N/A N/A html N/A N/A html replace N/A YOUTUBE_PLACEHOLDER video_id N/A generate_youtube_embed video_id N/A html N/A _hook_internal_link N/A N/A self parser space name N/A N/A N/A Parses text and returns internal link. N/A text False N/A title name N/A N/A | name N/A N/A N/A title text N/A N/A title split | 1 N/A hash N/A N/A # title N/A N/A N/A title hash N/A N/A title split # 1 N/A N/A hash N/A N/A hash N/A # N/A N/A hash replace _ N/A N/A N/A title N/A hash N/A N/A N/A text N/A N/A text N/A N/A hash replace _ N/A N/A <a href="%s">%s</a> N/A hash text N/A link N/A _get_wiki_link title N/A self locale N/A extra_a_attr N/A N/A N/A link N/A found N/A N/A extra_a_attr N/A N/A  class="new" title="{tooltip}" format tooltip N/A _ Page does not exist. N/A N/A text N/A N/A text N/A link N/A text N/A N/A N/A <a href="{url}{hash}"{extra}>{text}</a> format url N/A link N/A url hash hash extra extra_a_attr text text N/A _hook_image_tag N/A N/A self parser space name N/A N/A N/A Adds syntax for inserting images. N/A N/A title params N/A build_hook_params name N/A self locale IMAGE_PARAMS IMAGE_PARAM_VALUES N/A message N/A N/A _lazy The image "%s" does not exist. title N/A image N/A get_object_fallback Image title N/A self locale message N/A N/A isinstance image basestring N/A N/A image N/A N/A render_to_string N/A self image_template N/A image params STATIC_URL image params N/A settings STATIC_URL N/A _hook_video N/A N/A self parser space title N/A N/A N/A Handles [[Video:video title]] with locale from parser. N/A message N/A N/A _lazy The video "%s" does not exist. title N/A N/A title params N/A build_hook_params title N/A self locale VIDEO_PARAMS N/A N/A _is_youtube_url title N/A N/A parsed_url N/A urlparse title N/A netloc N/A parsed_url netloc N/A N/A netloc youtu.be N/A N/A video_id N/A N/A parsed_url path N/A 1 N/A N/A video_id N/A N/A N/A parse_qs N/A parsed_url query N/A v N/A 0 N/A N/A N/A N/A self youtube_videos append video_id N/A N/A YOUTUBE_PLACEHOLDER video_id N/A v N/A get_object_fallback Video title N/A self locale message N/A N/A isinstance v basestring N/A N/A v N/A N/A generate_video v params N/A _hook_button N/A N/A self parser space btn_type N/A N/A N/A N/A btn_type params N/A build_hook_params btn_type N/A self locale N/A N/A btn_type refresh N/A N/A template wikiparser/hook_refresh_button.html N/A N/A N/A N/A _lazy Button of type "%s" does not exist. btn_type N/A N/A render_to_string template N/A params params N/A N/A generate_video N/A N/A v params N/A N/A N/A N/A Takes a video object and returns HTML markup for embedding it. N/A sources N/A N/A N/A v webm N/A N/A N/A N/A sources append N/A src type N/A _get_video_url N/A v webm webm N/A N/A v ogv N/A N/A N/A N/A sources append N/A src type N/A _get_video_url N/A v ogv ogg N/A data_fallback N/A N/A v flv N/A N/A data_fallback N/A _get_video_url N/A v flv N/A N/A render_to_string wikiparser/hook_video.html N/A fallback sources params video height width data_fallback sources params v N/A settings WIKI_VIDEO_HEIGHT N/A settings WIKI_VIDEO_WIDTH N/A generate_youtube_embed N/A N/A video_id N/A N/A N/A Takes a youtube video id and returns the embed markup. N/A N/A render_to_string wikiparser/hook_youtube_embed.html N/A video_id video_id N/A _get_video_url N/A N/A video_file N/A N/A N/A N/A settings GALLERY_VIDEO_URL N/A N/A N/A N/A settings GALLERY_VIDEO_URL N/A basename N/A video_file name N/A N/A video_file url N/A _is_youtube_url N/A N/A url N/A N/A N/A Returns true if the URL is to youtube. N/A parsed_url N/A urlparse url N/A netloc N/A parsed_url netloc N/A N/A netloc N/A youtu.be youtube.com www.youtube.com N/A