Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad kwarg body Expr Str Assign NameStore ListLoad Assign SubscriptStore NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str Str If CompareIn Call AttributeLoad NameLoad attr ListLoad Str Str body Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call NameLoad Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad For TupleStore NameStore NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad NameLoad orelse Assign NameStore NameLoad Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str kwarg body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Return Call NameLoad Str NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Return Call NameLoad Str NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Return Call NameLoad Str NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad kwarg body Expr Str Assign SubscriptStore NameLoad Index Str NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str If NameLoad body Assign SubscriptStore NameLoad Index Str Str Assign NameStore Call NameLoad Str NameLoad NameLoad NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Str NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad kwarg body Expr Str If NameLoad body Assign SubscriptStore NameLoad Index Str Str If UnaryOpNot CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad NameLoad NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Str NameLoad keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Return Call NameLoad Str NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Expr Call NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If BoolOpOr NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore TupleLoad NameLoad NameLoad Assign NameStore TupleLoad NameLoad NameLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad orelse If Call NameLoad NameLoad NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad orelse Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore ListLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore IfExp CompareIsNot AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore CompareIn NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs NameLoad NameLoad body Return TupleLoad Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr If BoolOpOr NameLoad UnaryOpNot NameLoad body Return TupleLoad NameLoad orelse Return NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad NameLoad Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad kwarg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr orelse Assign NameStore Str Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Call NameLoad NameLoad Assign NameStore CompareEq NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad If AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad orelse Return Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults Str kwarg body Expr Str Assign SubscriptStore NameLoad Index Str NameLoad If BoolOpOr CompareEq NameLoad Str CompareIs NameLoad NameLoad body Assign NameStore NameLoad Return Call AttributeLoad NameLoad attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str kwarg body Expr Str If NameLoad body Return Call NameLoad NameLoad NameLoad NameLoad orelse Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str kwarg body Expr Str If UnaryOpNot NameLoad body Return Call NameLoad NameLoad NameLoad NameLoad orelse Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad Str kwarg body Expr Str ImportFrom alias If CompareEq NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad orelse Assign NameStore BoolOpOr NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad NameLoad Assign NameStore NameLoad Return Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Assign NameStore BoolOpOr NameLoad Dict Return Call NameLoad Str NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Call NameLoad Str NameLoad kwarg body Expr Str Assign NameStore BoolOpOr NameLoad Dict Return Call NameLoad Str NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore ListComp Call AttributeLoad NameLoad attr Str NameLoad NameLoad comprehension NameStore NameLoad If NameLoad body Assign NameStore BinOpAdd BinOpAdd ListLoad Str NameLoad ListLoad Str orelse If CompareIsNot NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad Call NameLoad Str attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str If CompareIn Str NameLoad body Raise Call NameLoad Str If CompareIn Str NameLoad body Raise Call NameLoad Str If UnaryOpNot NameLoad body Assign NameStore Str If BoolOpOr CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call NameLoad Str attr NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str If CompareIn Str NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Call NameLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str kwarg body Expr Str If CompareIn Str NameLoad body Raise Call NameLoad Str If CompareIn Str NameLoad body Raise Call NameLoad Str Assign NameStore Str If CompareIn Call AttributeLoad NameLoad attr TupleLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Str attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Return Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str NameLoad kwarg body Expr Str Assign AttributeStore NameLoad attr BoolOpOr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return Call NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad decorator_list Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIn Str NameLoad body If CompareIsNot NameLoad NameLoad body Raise Call NameLoad Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str orelse If CompareIs NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad orelse If BoolOpAnd CompareIsNot NameLoad NameLoad CompareNotEq NameLoad Str body Assign SubscriptStore NameLoad Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Str BinOpMod Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str NameLoad attr Return NameLoad decorator_list
N/A N/A Helpers that produce simple HTML tags.

Most helpers have an ``**attrs`` argument to specify additional HTML
attributes.  A trailing underscore in the name will be deleted; this is 
especially important for attributes that are identical to Python keywords;
e.g., ``class_``.  Some helpers handle certain keywords specially; these are
noted in the helpers' docstrings.

To create your own custom tags, see ``webhelpers2.html.builder``.
 __future__ unicode_literals N/A collections N/A datetime N/A logging N/A os N/A re N/A six webhelpers2 containers webhelpers2.html escape HTML literal url_escape webhelpers2.misc NotGiven N/A __all__ N/A form end_form text textarea hidden file password checkbox radio submit select Options Option OptGroup ModelTags link_to link_to_if link_to_unless th_sortable ol ul image stylesheet_link javascript_link auto_discovery_link Link BR N/A log N/A N/A logging getLogger __name__ form N/A N/A url method multipart hidden_fields N/A post False None attrs N/A N/A An open tag for a form that will submit to ``url``.

    You must close the form yourself by calling ``end_form()`` or outputting
    </form>.
    
    Options:

    ``method``
        The method to use when submitting the form, usually either 
        "GET" or "POST". If "PUT", "DELETE", or another verb is used, a
        hidden input with name _method is added to simulate the verb
        over POST.
    
    ``multipart``
        If set to True, the enctype is set to "multipart/form-data".
        You must set it to true when uploading files, or the browser will
        submit the filename rather than the file.

    ``hidden_fields``
        Additional hidden fields to add to the beginning of the form.  It may
        be a dict or an iterable of key-value tuples. This is implemented by
        calling the object's ``.items()`` method if it has one, or just
        iterating the object.  (This will successfuly get multiple values for
        the same key in WebOb MultiDict objects.)

    Because input tags must be placed in a block tag rather than directly
    inside the form, all hidden fields will be put in a 
    '<div style="display:none">'.  The style prevents the <div> from being
    displayed or affecting the layout.
     N/A fields N/A N/A N/A attrs N/A action url N/A multipart N/A N/A N/A attrs N/A enctype multipart/form-data N/A N/A N/A N/A method lower N/A post get N/A N/A N/A attrs N/A method method N/A N/A N/A attrs N/A method post N/A field N/A hidden _method method id None N/A N/A N/A fields append field N/A N/A hidden_fields None N/A N/A N/A N/A it N/A N/A hidden_fields items N/A N/A N/A AttributeError N/A N/A it hidden_fields N/A N/A name value it N/A N/A field N/A hidden name value id None N/A N/A N/A fields append field N/A fields N/A N/A div N/A N/A HTML tag div style display:none _nl True fields N/A N/A div None N/A N/A N/A HTML tag form div _closed False attrs N/A end_form N/A N/A N/A N/A N/A Output "</form>".
     N/A N/A literal </form> N/A text N/A N/A name value id type N/A None NotGiven text attrs N/A N/A Create a standard text field.
    
    ``value`` is a string, the content of the text field.

    ``id`` is the HTML ID attribute, and should be passed as a keyword
    argument.  By default the ID is the same as the name filtered through
    ``_make_safe_id_component()``.  Pass None to suppress the
    ID attribute entirely.

    ``type`` is the input field type, normally "text". You can override it
    for HTML 5 input fields that don't have their own helper; e.g.,
    "search", "email", "date".

    
    Options:
    
    * ``disabled`` - If set to True, the user will not be able to use
        this input.
    * ``size`` - The number of visible characters that will fit in the
        input.
    * ``maxlength`` - The maximum number of characters that the browser
        will allow the user to enter.
    
    The remaining keyword args will be standard HTML attributes for the tag.
     N/A N/A _input type name value id attrs N/A hidden N/A N/A name value id N/A None NotGiven attrs N/A N/A Create a hidden field.
     N/A N/A _input hidden name value id attrs N/A file N/A N/A name value id N/A None NotGiven attrs N/A N/A Create a file upload field.
    
    If you are using file uploads then you will also need to set the 
    multipart option for the form.

    Example::

        >>> file('myfile')
        literal(u'<input id="myfile" name="myfile" type="file" />')
    
     N/A N/A _input file name value id attrs N/A password N/A N/A name value id N/A None NotGiven attrs N/A N/A Create a password field.
    
    Takes the same options as ``text()``.
    
     N/A N/A _input password name value id attrs N/A textarea N/A N/A name content id N/A NotGiven attrs N/A N/A Create a text input area.
     N/A N/A attrs N/A name name N/A N/A _set_id_attr attrs id name N/A N/A N/A HTML tag textarea content attrs N/A checkbox N/A N/A name value checked label label_class id N/A 1 False None None NotGiven attrs N/A N/A Create a check box.

    Arguments:
    ``name`` -- the widget's name.

    ``value`` -- the value to return to the application if the box is checked.

    ``checked`` -- true if the box should be initially checked.

    ``label`` -- a text label to display to the right of the box.
    This puts a <label> tag around the input tag.

    ``label_class`` -- CSS class for <label> tag. This should be a keyword
    argument because its position may change in a future version.

    ``id`` is the HTML ID attribute, and should be passed as a keyword
    argument.  By default the ID is the same as the name filtered through
    ``_make_safe_id_component()``.  Pass None to suppress the
    ID attribute entirely.

    The following HTML attributes may be set by keyword argument:

    * ``disabled`` - If true, checkbox will be grayed out.

    * ``readonly`` - If true, the user will not be able to modify the checkbox.

    To arrange multiple checkboxes in a group, see
    webhelpers2.containers.distribute().
     N/A checked N/A N/A N/A attrs N/A checked checked N/A widget N/A _input checkbox name value id attrs N/A label N/A N/A widget N/A N/A HTML tag label widget label class_ label_class N/A widget N/A radio N/A N/A name value checked label label_class N/A False None None attrs N/A N/A Create a radio button.

    Arguments:
    ``name`` -- the field's name.

    ``value`` -- the value returned to the application if the button is
    pressed.

    ``checked`` -- true if the button should be initially pressed.

    ``label`` -- a text label to display to the right of the button.
    This puts a <label> tag around the input tag.
    
    ``label_class`` -- CSS class for <label> tag. This should be a keyword
    argument because its position may change in a future version.

    The id of the radio button will be set to the name + '_' + value to 
    ensure its uniqueness.  An ``id`` keyword arg overrides this.  (Note
    that this behavior is unique to the ``radio()`` helper.)
    
    To arrange multiple radio buttons in a group, see
    webhelpers2.containers.distribute().
     N/A checked N/A N/A N/A attrs N/A checked checked N/A N/A N/A id attrs N/A N/A N/A attrs N/A id N/A N/A {0}_{1} format name N/A _make_safe_id_component value N/A widget N/A _input radio name value None attrs N/A label N/A N/A widget N/A N/A HTML tag label widget label class_ label_class N/A widget N/A submit N/A N/A name value id N/A NotGiven attrs N/A N/A Create a submit button with the text ``value`` as the caption. N/A N/A _input submit name value id attrs N/A select N/A N/A name selected_values options id N/A NotGiven attrs N/A N/A Create a dropdown selection box.

    Arguments:

    * **name**: the name of this control.

    * **selected_values**: the value(s) that should be preselected.
      A string or list of strings. Some other types are allowed; see the
      ``Options.render`` method for details.

    * **options**: an ``Options`` instance, or an iterable to pass to the
      its constructor. See the ``Options`` class for allowed element types.

    * **id**: the HTML ID attribute. This should be a keyword argument if
      passed.  By default the ID is the same as the name.  filtered through
      ``_make_safe_id_component()``.  Pass None to suppress the
      ID attribute entirely.

    The following options may only be keyword arguments:

    * **multiple**: if true, this control will allow multiple
      selections.

    * **prompt**: An extra option that will be prepended to the list.
      The argument is the option label; e.g., "Please choose ...". The generated
      option's value will be the empty string (""), which is equivalent to not
      making a selection. If you specify this and also pass an ``Options``
      instance in ``options``, it will combine the two into a new ``Options``
      object rather than reusing the existing one.

    Any other keyword args will become HTML attributes for the <select>.
     N/A N/A _set_id_attr attrs id name N/A N/A attrs N/A name name N/A prompt N/A N/A attrs pop prompt None N/A N/A prompt N/A N/A isinstance options Options N/A N/A options N/A Options options prompt prompt N/A N/A N/A HTML tag select NL N/A N/A options render selected_values attrs N/A _OptionsList N/A list N/A N/A Base class of ``Options`` and  ``OptGroup``. add_option N/A N/A self label value N/A None N/A N/A Create an option and append it to the list.

        * **label**: the option's text label. String.
        * **value**: the option's value if selected. Optional.
         N/A opt N/A Option label value N/A N/A N/A self append opt N/A _parse_options N/A N/A self options N/A N/A N/A parsed_types N/A Option OptGroup N/A seq_types N/A list tuple N/A opt options N/A N/A N/A isinstance opt parsed_types N/A N/A option opt N/A N/A N/A isinstance opt seq_types N/A N/A N/A TypeError N/A N/A lists/tuples are no longer allowed as elements in the 'options' arg: {0!r} format opt N/A N/A option N/A Option opt N/A N/A N/A self append option N/A N/A OptGroup N/A _OptionsList N/A N/A A group of options.

    I'm a subclass of ``list``. My elements are ``Option`` instances.
    I can be an element in ``Options``.
     __init__ N/A N/A self label options N/A None N/A N/A Construct an ``OptGroup``.

        **label**: The group's label.

        **options**: An iterable of ``Option`` instances, and/or
        strings. If you pass strings, they will be converted to simple
        ``Option`` instances (i.e., the label will be the string, and
        the value will be ``None``).

         N/A N/A self label label N/A options N/A N/A N/A N/A self _parse_options options N/A __repr__ N/A N/A self N/A N/A N/A classname N/A N/A self __class__ __name__ N/A N/A N/A {0}({1!r}, {2!r}) format classname N/A self label N/A list self N/A N/A Options N/A _OptionsList N/A N/A A list of options and/or optgroups for a select or datalist.

    I'm a subclass of ``list``. My elements are ``Option`` and/or ``OptGroup``
    instances. Do not add other element types or they may cause
    ``options.render`` or ``str(options)`` to fail.
     __init__ N/A N/A self options prompt N/A None None N/A N/A Construct an ``Options`` instance.

        **options**: An iterable of ``Option`` instances, ``OptGroup``
        instances and/or strings. If you pass strings, they will be converted
        to simple ``Option`` instances (i.e., the label will be the string, and
        the value will be ``None``).

        **prompt**: If passed, this will be turned into an extra option before
        the others. The string argument will become the option's label, and
        the option's value will be the empty string.
         N/A prompt N/A N/A N/A N/A self add_option prompt N/A options N/A N/A N/A N/A self _parse_options options N/A __repr__ N/A N/A self N/A N/A N/A classname N/A N/A self __class__ __name__ N/A N/A N/A {0}({1!r}) format classname N/A list self N/A add_optgroup N/A N/A self label options N/A None N/A N/A Create an ``OptGroup``, append it, and return it.

        The return value is the ``OptGroup`` instance. Call its
        ``.add_option`` method to add options to the group.
         N/A group N/A OptGroup label options N/A N/A N/A self append group N/A group N/A render N/A N/A self selected_values N/A None N/A N/A 
        Render the options as a concatenated literal of <option> and/or
        <optgroup> tags, with a newline after each.

        **selected_values**: The value(s) that should be preselected. You
        can pass a string, int, bool, or other scalar type, or a sequence of
        these. If you pass a scalar it will be standardized to a one-element
        tuple. If you don't pass anything, it will default to ``("",)`` (a tuple
        containing the empty string); this will correctly preselect prompts.

        Note that ``selected_values`` *does not do type conversions*. If you
        pass an int, the corresponding ``Option.value`` must also be an int or
        otherwise equal to it. (The actual comparision operator is ``in``.)

        Calling ``str(options)`` or ``options.__html__()`` is the same as
        calling ``options.render()`` without arguments. This is only useful if
        you don't want to pass any selected values.
         N/A selected_values N/A N/A self _parse_selected_values selected_values N/A N/A N/A self _render self selected_values N/A N/A __str__ __html__ render _render N/A N/A self options selected_values N/A N/A N/A tags N/A N/A opt options N/A N/A N/A isinstance opt OptGroup N/A N/A content N/A N/A self _render opt selected_values N/A tag N/A N/A HTML tag optgroup NL content label N/A opt label N/A N/A N/A tags append tag N/A N/A value N/A N/A N/A opt value None N/A opt value N/A opt label N/A selected N/A value selected_values N/A tag N/A N/A HTML tag option N/A opt label value N/A opt value selected selected N/A N/A N/A tags append tag N/A N/A HTML nl True tags N/A _parse_selected_values N/A N/A values N/A N/A N/A N/A values None N/A N/A N/A N/A is_string N/A isinstance values N/A six string_types N/A is_seq N/A isinstance values N/A collections Sequence N/A N/A is_string N/A is_seq N/A N/A N/A values N/A N/A values N/A staticmethod N/A Option N/A object N/A N/A An option for a select or datalist.

    I can be an element in ``Options``.
     N/A __slots__ N/A label value __init__ N/A N/A self label value N/A None N/A N/A Construct an ``Option``. N/A N/A self label label N/A N/A self value value N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A Option({0!r}, {1!r}) format N/A self label N/A self value N/A N/A ModelTags N/A object N/A N/A A nice way to build a form for a database record.
    
    ModelTags allows you to build a create/update form easily.  (This is the
    C and U in CRUD.)  The constructor takes a database record, which can be
    a SQLAlchemy mapped class, or any object with attributes or keys for the
    field values.  Its methods shadow the the form field helpers, but it
    automatically fills in the value attribute based on the current value in
    the record.  (It also knows about the 'checked' and 'selected' attributes
    for certain tags.)

    You can also use the same form  to input a new record.  Pass ``None`` or
    ``""`` instead of a record, and it will set all the current values to a
    default value, which is either the `default` keyword arg to the method, or
    `""` if not specified.
     N/A undefined_values N/A set N/A None __init__ N/A N/A self record use_keys date_format id_format N/A False %m/%d/%Y None N/A N/A Create a ``ModelTags`` object.

        ``record`` is the database record to lookup values in.  It may be
        any object with attributes or keys, including a SQLAlchemy mapped
        instance.  It may also be ``None`` or ``""`` to indicate that a new
        record is being created.  (The class attribute ``undefined_values``
        tells which values indicate a new record.)

        If ``use_keys`` is true, values will be looked up by key.  If false
        (default), values will be looked up by attribute.

        ``date_format`` is a strftime-compatible string used by the ``.date``
        method.  The default is American format (MM/DD/YYYY), which is
        most often seen in text fields paired with popup calendars.
        European format (DD/MM/YYYY) is "%d/%m/%Y".  ISO format (YYYY-MM-DD)
        is "%Y-%m-%d".

        ``id_format`` is a formatting-operator format for the HTML 'id'
        attribute.  It should contain one "{}" where the tag's name will be
        embedded. For backward compatibility with WebHelpers, "%s" is
        automatically converted to "{}".
         N/A N/A self record record N/A N/A self use_keys use_keys N/A N/A self date_format date_format N/A id_format N/A N/A id_format N/A N/A id_format replace %s {0} N/A N/A self id_format id_format N/A checkbox N/A N/A self name value label N/A 1 None kw N/A N/A Build a checkbox field.
        
        The box will be initially checked if the value of the corresponding
        database field is true.

        The submitted form value will be "1" if the box was checked. If the
        box is unchecked, no value will be submitted. (This is a downside of
        the standard checkbox tag.)

        To display multiple checkboxes in a group, see
        webhelper.containers.distribute().
         N/A N/A N/A self _update_id name kw N/A value N/A N/A kw pop value 1 N/A checked N/A bool N/A N/A self _get_value name kw N/A N/A checkbox name value checked label kw N/A date N/A N/A self name N/A kw N/A N/A Same as text but format a date value into a date string.

        The value can be a `datetime.date`, `datetime.datetime`, `None`,
        or `""`.  The former two are converted to a string using the
        date format passed to the constructor.  The latter two are converted
        to "".

        If there's no database record, consult keyword arg `default`. It it's
        the string "today", use todays's date. Otherwise it can be any of the
        values allowed above.  If no default is specified, the text field is
        initialized to "".

        Hint: you may wish to attach a Javascript calendar to the field.
         N/A N/A N/A self _update_id name kw N/A value N/A N/A self _get_value name kw N/A N/A isinstance value N/A datetime date N/A N/A value N/A N/A value strftime N/A self date_format N/A N/A N/A value today N/A N/A value N/A N/A N/A N/A N/A datetime date today strftime N/A self date_format N/A N/A value N/A N/A text name value kw N/A file N/A N/A self name N/A kw N/A N/A Build a file upload field.
        
        User agents may or may not respect the contents of the 'value' attribute. N/A N/A N/A self _update_id name kw N/A value N/A N/A self _get_value name kw N/A N/A file name value kw N/A hidden N/A N/A self name N/A kw N/A N/A Build a hidden HTML field. N/A N/A N/A self _update_id name kw N/A value N/A N/A self _get_value name kw N/A N/A hidden name value kw N/A password N/A N/A self name N/A kw N/A N/A Build a password field.
        
        This is the same as a text box but the value will not be shown on the
        screen as the user types.
         N/A N/A N/A self _update_id name kw N/A value N/A N/A self _get_value name kw N/A N/A password name value kw N/A radio N/A N/A self name checked_value label N/A None kw N/A N/A Build a radio button.

        The radio button will initially be selected if the database value 
        equals ``checked_value``.  On form submission the value will be 
        ``checked_value`` if the button was selected, or ``""`` otherwise.

        In case of a ModelTags object that is created from scratch
        (e.g. ``new_employee=ModelTags(None)``) the option that should
        be checked can be set by the 'default' parameter. As in:
        ``new_employee.radio('status', checked_value=7, default=7)``

        The control's 'id' attribute will be modified as follows:

        1. If not specified but an 'id_format' was given to the constructor,
           generate an ID based on the format.
        2. If an ID was passed in or was generated by step (1), append an
           underscore and the checked value.  Before appending the checked
           value, lowercase it, change any spaces to ``"_"``, and remove any
           non-alphanumeric characters except underscores and hyphens.
        3. If no ID was passed or generated by step (1), the radio button 
           will not have an 'id' attribute.

        To display multiple radio buttons in a group, see
        webhelper.containers.distribute().
         N/A N/A N/A self _update_id name kw N/A value N/A N/A self _get_value name kw N/A N/A id kw N/A N/A N/A kw N/A id N/A N/A {0}_{1} format N/A kw N/A id N/A _make_safe_id_component checked_value N/A checked N/A value checked_value N/A N/A radio name checked_value checked label kw N/A select N/A N/A self name options N/A kw N/A N/A Build a dropdown select box or list box.

        See the ``select()`` function for the meaning of the arguments.

        If the corresponding database value is not a list or tuple, it's
        wrapped in a one-element list.  But if it's "" or ``None``, an empty
        list is substituted.  This is to accommodate multiselect lists, which
        may have multiple values selected.  N/A N/A N/A self _update_id name kw N/A selected_values N/A N/A self _get_value name kw N/A N/A select name selected_values options kw N/A text N/A N/A self name N/A kw N/A N/A Build a text box. N/A N/A N/A self _update_id name kw N/A value N/A N/A self _get_value name kw N/A N/A text name value kw N/A textarea N/A N/A self name N/A kw N/A N/A Build a rectangular text area. N/A N/A N/A self _update_id name kw N/A content N/A N/A self _get_value name kw N/A N/A textarea name content kw N/A _get_value N/A N/A self name kw N/A N/A N/A Get the current value of a field from the database record.

        ``name``: The field to look up.

        ``kw``: The keyword args passed to the original method.  This is
        _not_ a "\*\*" argument!  It's a dict that will be modified in place!

        ``kw["default"]`` will be popped from the dict in all cases for
        possible use as a default value.  If the record doesn't exist, this
        default is returned, or ``""`` if no default was passed.
         N/A default N/A N/A kw pop default N/A undefined_value N/A self undefined_values N/A N/A N/A N/A self record undefined_value N/A N/A default N/A N/A self use_keys N/A N/A N/A N/A self record N/A name N/A N/A N/A getattr N/A self record name N/A _update_id N/A N/A self name kw N/A N/A N/A Apply the 'id' attribute algorithm.

        ``name``: The name of the HTML field.

        ``kw``: The keyword args passed to the original method.  This is
        _not_ a "\*\*" argument!  It's a dict that will be modified in place!

        If an ID format was specified but no 'id' keyword was passed, 
        set the 'id' attribute to a value generated from the format and name.
        Otherwise do nothing.
         N/A N/A N/A N/A self id_format None N/A id kw N/A N/A N/A kw N/A id N/A N/A N/A self id_format format name N/A N/A link_to N/A N/A label url N/A attrs N/A N/A Create a hyperlink with the given text pointing to the URL.
    
    If the label is ``None`` or empty, the URL will be used as the label.

    This function does not modify the URL in any way.  The label will be
    escaped if it contains HTML markup.  To prevent escaping, wrap the label
    in a ``webhelpers2.html.literal()``.
     N/A N/A attrs N/A href url N/A N/A N/A label N/A label None N/A N/A label url N/A N/A N/A HTML tag a label attrs N/A link_to_if N/A N/A condition label url N/A attrs N/A N/A Same as ``link_to`` but return just the label if the condition is false.
    
    This is useful in a menu when you don't want the current option to be a
    link.  The condition will be something like:
    ``actual_value != value_of_this_menu_item``.
     N/A condition N/A N/A N/A link_to label url attrs N/A N/A N/A HTML label N/A link_to_unless N/A N/A condition label url N/A attrs N/A N/A The opposite of ``link_to``. Return just the label if the condition is 
    true.
     N/A N/A condition N/A N/A N/A link_to label url attrs N/A N/A N/A HTML label N/A th_sortable N/A N/A current_order column_order label url class_if_sort_column class_if_not_sort_column link_attrs name N/A sort None None th attrs N/A N/A <th> for a "click-to-sort-by" column.

    Convenience function for a sortable column.  If this is the current sort
    column, just display the label and set the cell's class to
    ``class_if_sort_column``.
    
    ``current_order`` is the table's current sort order.  ``column_order`` is
    the value pertaining to this column.  In other words, if the two are equal,
    the table is currently sorted by this column.

    If this is the sort column, display the label and set the <th>'s class to
    ``class_if_sort_column``.

    If this is not the sort column, display an <a> hyperlink based on
    ``label``, ``url``, and ``link_attrs`` (a dict), and set the <th>'s class
    to ``class_if_not_sort_column``.  
    
    ``url`` is the literal href= value for the link.  Pylons users would
    typically pass something like ``url=h.url_for("mypage", sort="date")``.

    ``**attrs`` are additional attributes for the <th> tag.

    If you prefer a <td> tag instead of <th>, pass ``name="td"``.

    To change the sort order via client-side Javascript, pass ``url=None`` and
    the appropriate Javascript attributes in ``link_attrs``.
     webhelpers2.html HTML N/A N/A current_order column_order N/A N/A content label N/A class_ class_if_sort_column N/A N/A link_attrs N/A link_attrs N/A N/A content N/A N/A HTML tag a label href url link_attrs N/A class_ class_if_not_sort_column N/A N/A N/A HTML tag th content class_ class_ attrs N/A ul N/A N/A items default li_attrs N/A None None attrs N/A N/A Return an unordered list with each item wrapped in <li>.

    ``items``
        list of strings.

    ``default``
        value returned _instead of the <ul>_ if there are no items in the list.
        If ``None``, return an empty <ul>.

    ``li_attrs``
        dict of attributes for the <li> tags.
     N/A li_attrs N/A li_attrs N/A N/A N/A _list ul items default attrs li_attrs N/A ol N/A N/A items default li_attrs N/A N/A literal None attrs N/A N/A Return an ordered list with each item wrapped in <li>.

    ``items``
        list of strings.

    ``default``
        value returned _instead of the <ol>_ if there are no items in the list.
        If ``None``, return an empty <ol>.

    ``li_attrs``
        dict of attributes for the <li> tags.
     N/A li_attrs N/A li_attrs N/A N/A N/A _list ol items default attrs li_attrs N/A _list N/A N/A tag items default attrs li_attrs N/A N/A N/A content N/A N/A N/A HTML tag li x li_attrs N/A x items N/A content N/A N/A content N/A N/A N/A content N/A N/A N/A N/A default None N/A N/A default N/A content N/A N/A N/A literal join content N/A N/A N/A HTML tag tag content attrs N/A image N/A N/A url alt width height N/A None None attrs N/A N/A Return an image tag for the specified ``source``.

    ``url``
        The URL of the image.  (This must be the exact URL desired.  A
        previous version of this helper added magic prefixes; this is
        no longer the case.)
    
    ``alt``
        The img's alt tag. Non-graphical browsers and screen readers will
        output this instead of the image.  If the image is pure decoration
        and uninteresting to non-graphical users, pass "".  To omit the
        alt tag completely, pass None.

    ``width``
        The width of the image, default is not included.

    ``height``
        The height of the image, default is not included.

    Note: This version does not support the 'path' and 'use_pil' arguments,
    because they depended on the WebHelpers 'media' subpackage which was
    dropped in WebHelpers 2. 
     N/A N/A path attrs N/A N/A N/A TypeError the 'path' arg is not supported in WebHelpers2 N/A N/A use_pil attrs N/A N/A N/A TypeError the 'use_pil' arg is not supported in WebHelpers2 N/A N/A alt N/A N/A alt N/A N/A N/A width None N/A height None N/A N/A N/A attrs N/A width width N/A N/A attrs N/A height height N/A N/A N/A HTML tag img src url alt alt attrs N/A javascript_link N/A N/A N/A urls attrs N/A N/A Return script include tags for the specified javascript URLs.
    
    ``urls`` should be the exact URLs desired.  A previous version of this
    helper added magic prefixes; this is no longer the case.

    Specify the keyword argument ``defer=True`` to enable the script 
    defer attribute.
     N/A tags N/A N/A url urls N/A N/A tag N/A N/A HTML tag script type text/javascript src url attrs N/A N/A N/A tags append tag N/A N/A N/A N/A literal join tags N/A stylesheet_link N/A N/A N/A urls attrs N/A N/A Return CSS link tags for the specified stylesheet URLs.

    ``urls`` should be the exact URLs desired.  A previous version of this
    helper added magic prefixes; this is no longer the case.
     N/A N/A href attrs N/A N/A N/A TypeError keyword arg 'href' not allowed N/A N/A N/A attrs setdefault rel stylesheet N/A N/A N/A attrs setdefault type text/css N/A N/A N/A attrs setdefault media screen N/A tags N/A N/A url urls N/A N/A tag N/A N/A HTML tag link href url attrs N/A N/A N/A tags append tag N/A N/A N/A N/A literal join tags N/A auto_discovery_link N/A N/A url feed_type N/A rss attrs N/A N/A Return a link tag allowing auto-detecting of RSS or ATOM feed.
    
    The auto-detection of feed for the current page is only for
    browsers and news readers that support it.

    ``url``
        The URL of the feed.  (This should be the exact URLs desired.  A
        previous version of this helper added magic prefixes; this is no longer
        the case.)

    ``feed_type``
        The type of feed. Specifying 'rss' or 'atom' automatically 
        translates to a type of 'application/rss+xml' or 
        'application/atom+xml', respectively. Otherwise the type is
        used as specified. Defaults to 'rss'.
     N/A N/A href attrs N/A N/A N/A TypeError keyword arg 'href' is not allowed N/A N/A type attrs N/A N/A N/A TypeError keyword arg 'type' is not allowed N/A title N/A N/A N/A N/A feed_type lower N/A rss atom N/A N/A title N/A N/A feed_type upper N/A feed_type N/A N/A application/{0}+xml format N/A N/A feed_type lower N/A N/A N/A attrs setdefault title title N/A N/A N/A HTML tag link rel alternate type feed_type href url attrs N/A Link N/A object N/A N/A A lazy-rendering hyperlink object.

    Attributes:

    * **label**: The text content. Can contain HTML markup or an image if you
      use a literal or the other helpers.
    * **url**: The URL target. Renders as the 'href' attribute.
    * **condition**: If true (default), render an <a> tag. If false, render
      only the text content.
    * **attrs**: Dict of HTML attributes.

    The 'condition' attribute is useful in cases like a menu where want the
    curent page to show just as text rather than a link.
     __init__ N/A N/A self label url condition N/A True attrs N/A N/A Constructor.
        
        The 'label' argument is required. If empty or ``None``, copy the URL to
        the label. The URL defaults to ``""``.
         N/A N/A self label N/A label url N/A N/A self url url N/A N/A self condition condition N/A N/A self attrs attrs N/A __html__ N/A N/A self N/A N/A N/A N/A N/A self condition N/A N/A N/A HTML N/A self label N/A N/A N/A HTML tag a N/A self label href N/A self url N/A self attrs N/A N/A __str__ __html__ N/A N/A NL N/A HTML NL N/A BR N/A HTML BR _input N/A N/A type name value id attrs N/A N/A N/A Finish rendering an input tag. N/A N/A attrs N/A type type N/A N/A attrs N/A name name N/A N/A attrs N/A value value N/A N/A _set_id_attr attrs id name N/A N/A N/A HTML tag input attrs N/A _set_id_attr N/A N/A attrs id_arg name N/A N/A N/A N/A id_ attrs N/A N/A N/A id_arg NotGiven N/A N/A N/A TypeError can't pass both 'id' and 'id_' args to helper N/A N/A attrs N/A id N/A N/A attrs pop id_ N/A N/A N/A id_arg NotGiven N/A N/A N/A attrs N/A id N/A _make_safe_id_component name N/A N/A N/A N/A id_arg None N/A id_arg N/A N/A N/A attrs N/A id id_arg N/A _make_safe_id_component N/A N/A idstring N/A N/A N/A Make a string safe for including in an id attribute.
    
    The HTML spec says that id attributes 'must begin with 
    a letter ([A-Za-z]) and may be followed by any number 
    of letters, digits ([0-9]), hyphens ("-"), underscores 
    ("_"), colons (":"), and periods (".")'. These regexps
    are slightly over-zealous, in that they remove colons
    and periods unnecessarily.
    
    Whitespace is transformed into underscores, and then
    anything which is not a hyphen or a character that 
    matches \w (alphanumerics and underscore) is removed.
    
     N/A idstring N/A N/A re sub \s _ N/A %s idstring N/A idstring N/A N/A N/A N/A re sub (?!-)\W idstring lower N/A idstring N/A