(self)
ListControls are built up from component list items (which are also
        ListControls) during parsing.  This method should be called after all
        items have been added.  See ListControl.__doc__ for the reason this is
        required.
ListControls are built up from component list items (which are also
        ListControls) during parsing.  This method should be called after all
        items have been added.  See ListControl.__doc__ for the reason this is
        required.
ListControls are built up from component list items ( which are also ListControls ) during parsing . This method should be called after all items have been added . See ListControl . __doc__ for the reason this is required .
def fixup(self):
        """
        ListControls are built up from component list items (which are also
        ListControls) during parsing.  This method should be called after all
        items have been added.  See ListControl.__doc__ for the reason this is
        required.

        """
        # Need to set default selection where no item was indicated as being
        # selected by the HTML:

        # CHECKBOX:
        #  Nothing should be selected.
        # SELECT/single, SELECT/multiple and RADIO:
        #  RFC 1866 (HTML 2.0): says first item should be selected.
        #  W3C HTML 4.01 Specification: says that client behaviour is
        #   undefined in this case.  For RADIO, exactly one must be selected,
        #   though which one is undefined.
        #  Both Netscape and Microsoft Internet Explorer (IE) choose first
        #   item for SELECT/single.  However, both IE5 and Mozilla (both 1.0
        #   and Firebird 0.6) leave all items unselected for RADIO and
        #   SELECT/multiple.

        # Since both Netscape and IE all choose the first item for
        # SELECT/single, we do the same.  OTOH, both Netscape and IE
        # leave SELECT/multiple with nothing selected, in violation of RFC 1866
        # (but not in violation of the W3C HTML 4 standard); the same is true
        # of RADIO (which *is* in violation of the HTML 4 standard).  We follow
        # RFC 1866 if the _select_default attribute is set, and Netscape and IE
        # otherwise.  RFC 1866 and HTML 4 are always violated insofar as you
        # can deselect all items in a RadioControl.

        for o in self.items: 
            # set items' controls to self, now that we've merged
            o.__dict__["_control"] = self
def fixup ( self ) : # Need to set default selection where no item was indicated as being # selected by the HTML: # CHECKBOX: #  Nothing should be selected. # SELECT/single, SELECT/multiple and RADIO: #  RFC 1866 (HTML 2.0): says first item should be selected. #  W3C HTML 4.01 Specification: says that client behaviour is #   undefined in this case.  For RADIO, exactly one must be selected, #   though which one is undefined. #  Both Netscape and Microsoft Internet Explorer (IE) choose first #   item for SELECT/single.  However, both IE5 and Mozilla (both 1.0 #   and Firebird 0.6) leave all items unselected for RADIO and #   SELECT/multiple. # Since both Netscape and IE all choose the first item for # SELECT/single, we do the same.  OTOH, both Netscape and IE # leave SELECT/multiple with nothing selected, in violation of RFC 1866 # (but not in violation of the W3C HTML 4 standard); the same is true # of RADIO (which *is* in violation of the HTML 4 standard).  We follow # RFC 1866 if the _select_default attribute is set, and Netscape and IE # otherwise.  RFC 1866 and HTML 4 are always violated insofar as you # can deselect all items in a RadioControl. for o in self . items : # set items' controls to self, now that we've merged o . __dict__ [ "_control" ] = self