Logo Search packages:      
Sourcecode: zope-formulator version File versions  Download package

def Formulator::Form::Form::header (   self  )  [inherited]

Starting form tag.

Definition at line 433 of file Form.py.

00433                     :
        """Starting form tag.
        """
        # FIXME: backwards compatibility; name attr may not be present
        if not hasattr(self, "name"):
            self.name = ""
        name = self.name

        if self.enctype is not "":
            if name:
                res = render_tag("form",
                                 name=name,
                                 action=self.action,
                                 method=self.method,
                                 enctype=self.enctype) + ">"
            else:
                res = render_tag("form",
                                 action=self.action,
                                 method=self.method,
                                 enctype=self.enctype) + ">"
        else:
            if name:
                res = render_tag("form",
                                 name=name,
                                 action=self.action,
                                 method=self.method) + ">"
            else:
                res = render_tag("form",
                                 action=self.action,
                                 method=self.method) + ">"
        return '%s\n<input type="hidden" name="formulator_submission" value="1" />' % res

    security.declareProtected('View', 'footer')
    def footer(self):


Generated by  Doxygen 1.6.0   Back to index