(self, action, method="GET",
                 enctype=None,
                 name=None, attrs=None,
                 request_class=urllib2.Request,
                 forms=None, labels=None, id_to_labels=None,
                 backwards_compat=True)
In the usual case, use ParseResponse (or ParseFile) to create new
        HTMLForm objects.

        action: full (absolute URI) form action
        method: "GET" or "POST"
        enctype: form transfer encoding MIME type
        name: name of form
        attrs: dictionary mapping original HTML form attributes to their values
In the usual case, use ParseResponse (or ParseFile) to create new
        HTMLForm objects.
In the usual case use ParseResponse ( or ParseFile ) to create new HTMLForm objects .
def __init__(self, action, method="GET",
                 enctype=None,
                 name=None, attrs=None,
                 request_class=urllib2.Request,
                 forms=None, labels=None, id_to_labels=None,
                 backwards_compat=True):
        """
        In the usual case, use ParseResponse (or ParseFile) to create new
        HTMLForm objects.

        action: full (absolute URI) form action
        method: "GET" or "POST"
        enctype: form transfer encoding MIME type
        name: name of form
        attrs: dictionary mapping original HTML form attributes to their values

        """
        self.action = action
        self.method = method
        self.enctype = enctype or "application/x-www-form-urlencoded"
        self.name = name
        if attrs is not None:
            self.attrs = attrs.copy()
        else:
            self.attrs = {}
        self.controls = []
        self._request_class = request_class

        # these attributes are used by zope.testbrowser
        self._forms = forms  # this is a semi-public API!
        self._labels = labels  # this is a semi-public API!
        self._id_to_labels = id_to_labels  # this is a semi-public API!

        self.backwards_compat = backwards_compat  # note __setattr__

        self._urlunparse = urlparse.urlunparse
        self._urlparse = urlparse.urlparse
def __init__ ( self , action , method = "GET" , enctype = None , name = None , attrs = None , request_class = urllib2 . Request , forms = None , labels = None , id_to_labels = None , backwards_compat = True ) : self . action = action self . method = method self . enctype = enctype or "application/x-www-form-urlencoded" self . name = name if attrs is not None : self . attrs = attrs . copy ( ) else : self . attrs = { } self . controls = [ ] self . _request_class = request_class # these attributes are used by zope.testbrowser self . _forms = forms # this is a semi-public API! self . _labels = labels # this is a semi-public API! self . _id_to_labels = id_to_labels # this is a semi-public API! self . backwards_compat = backwards_compat # note __setattr__ self . _urlunparse = urlparse . urlunparse self . _urlparse = urlparse . urlparse