Module ImportFrom alias ImportFrom alias identifier ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str kwarg body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad If NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str Call NameLoad Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad If NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Str Call NameLoad Str For NameStore NameLoad body Assign NameStore TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list
N/A flask_wtf Form flask_babel lazy_gettext _ ModelForm N/A Form N/A N/A 
    wtforms_components exposes ModelForm but their ModelForm does not inherit
    from flask_wtf's Form, but instead WTForm's Form.

    However, in order to get csrf protection handled by default we need to
    inherit from flask_wtf's Form. So let's just copy his class directly.

    We modified it by removing the format argument so that wtforms_component
    uses its own default which is to pass in request.form automatically.
     __init__ N/A N/A self obj prefix N/A None kwargs N/A N/A N/A N/A Form __init__ self obj obj prefix prefix kwargs N/A N/A self _obj obj N/A N/A choices_from_dict N/A N/A source prepend_blank N/A True N/A N/A 
    Convert a dict to a format that's compatible with WTForm's choices. It also
    optionally prepends a "Please select one..." value.

    Example:
      # Convert this data structure:
      STATUS = OrderedDict([
          ('unread', 'Unread'),
          ('open', 'Open'),
          ('contacted', 'Contacted'),
          ('closed', 'Closed')
      ])

      # Into this:
      choices = [('', 'Please select one...'), ('unread', 'Unread) ...]

    :param source: Input source
    :type source: dict
    :param prepend_blank: An optional blank item
    :type prepend_blank: bool
    :return: list
     N/A choices N/A N/A prepend_blank N/A N/A N/A N/A choices append N/A N/A _ Please select one... N/A N/A key value N/A N/A source iteritems N/A N/A pair N/A key value N/A N/A N/A choices append pair N/A choices N/A choices_from_list N/A N/A source prepend_blank N/A True N/A N/A 
    Convert a list to a format that's compatible with WTForm's choices. It also
    optionally prepends a "Please select one..." value.

    Example:
      # Convert this data structure:
      TIMEZONES = (
        'Africa/Abidjan',
        'Africa/Accra',
        'Africa/Addis_Ababa'
      )

      # Into this:
      choices = [('', 'Please select one...'),
                 ('Africa/Abidjan', 'Africa/Abidjan) ...]

    :param source: Input source
    :type source: list or tuple
    :param prepend_blank: An optional blank item
    :type prepend_blank: bool
    :return: list
     N/A choices N/A N/A prepend_blank N/A N/A N/A N/A choices append N/A N/A _ Please select one... N/A item source N/A N/A pair N/A item item N/A N/A N/A choices append pair N/A choices N/A