Ñò
†°Ic @ s d Z d d k Z d d k Z d d k l Z l Z d d d d d d g Z e e e e e e e e e e d
e e d „
Z
d e f d „ ƒ YZ d
„ Z
d „ Z d „ Z d „ Z d „ Z d e f d „ ƒ YZ h e
d 6e d 6e d 6e d 6e d 6Z d S( sL
Parser for HTML forms, that fills in defaults and errors. See
``render``.
iÿÿÿÿN( t RewritingParsert
html_quotet rendert htmlliteralt default_formattert none_formattert escape_formattert
FillingParsert errorc C s§ | d
j o
h } n | o | d
j o
t } n t d | d | d | d | d | d | d | d | d |
d
| d | d |
ƒ } | i | ƒ | i ƒ | i ƒ S( s
Render the ``form`` (which should be a string) given the defaults
and errors. Defaults are the values that go in the input fields
(overwriting any values that are there) and errors are displayed
inline in the form (and also effect input classes). Returns the
rendered string.
If ``auto_insert_errors`` is true (the default) then any errors
for which ``
``.
If ``text_as_default`` is true (default false) then ```` will be treated as text inputs.
``listener`` can be an object that watches fields pass; the only
one currently is in ``htmlfill_schemabuilder.SchemaBuilder``
``encoding`` specifies an encoding to assume when mixing str and
unicode text in the template.
``prefix_error`` specifies if the HTML created by auto_error_formatter is
put before the input control (default) or after the control.
``force_defaults`` specifies if a field default is not given in
the ``defaults`` dictionary then the control associated with the
field should be set as an unsuccessful control. So checkboxes will
be cleared, radio and select controls will have no value selected,
and textareas will be emptied. This defaults to ``True``, which is
appropriate the defaults are the result of a form submission.
t defaultst errorst use_all_keyst error_formatterst add_attributest auto_error_formattert text_as_defaultt listenert encodingt prefix_errort error_classt force_defaultsN( t NoneR R t feedt closet text( t formR R
R R R
t auto_insert_errorsR R R R R R R t p( ( s7 /usr/lib/python2.6/site-packages/formencode/htmlfill.pyR s$ 9
c B s/ e Z d d „ Z d „ Z d „ Z d „ Z RS( c C sr | d j oO t i d d | ƒ } | i d d ƒ } | i d d ƒ } | i d d ƒ } n | | _ | | _ d S( Ns <.*?>t s >t >s <t