Lines Matching refs:Form
237 environ.setdefault('CONTENT_TYPE', 'application/x-www-form-urlencoded')
326 content_type = 'multipart/form-data; boundary=%s' % boundary
333 line = 'Content-Disposition: form-data; name="%s"' % key
345 line = ('Content-Disposition: form-data; name="%s"; filename="%s"'
522 Returns a dictionary of ``Form`` objects. Indexes are both in
523 order (from zero) and by form id (if the form is given an id).
531 A list of <form>s found on the page (instances of
532 `Form <class-paste.fixture.Form.html>`_)
539 "You used response.form, but no forms exist")
541 # There is more than one form
543 "You used response.form, but more than one form exists")
546 form = property(form__get,
548 Returns a single `Form
549 <class-paste.fixture.Form.html>`_ instance; it
563 if tag != 'form':
567 "</form> unexpected at %s" % match.start())
572 "Nested form tags at %s" % match.start())
575 "Danging form: %r" % self.body[started:])
577 form = Form(self, text)
578 forms[i] = form
579 if form.id:
580 forms[form.id] = form
925 class Form(object):
928 This object represents a form that has been found in a page.
932 the full HTML of the form.
1026 if tag != 'form':
1036 assert 0, "No </form> tag found"
1038 "No <form> tag found")
1115 Submits the form. If ``name`` is given, then also select that
1130 state of the form.
1169 def __init__(self, form, tag, name, pos,
1171 self.form = form
1279 def __init__(self, form, tag, name, pos,
1282 Field.__init__(self, form, tag, name, pos,