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

def Formulator::Form::ZMIForm::has_field (   self,
  id,
  include_disabled = 0 
)

Check whether the form has a field of a certain id.

Reimplemented from Formulator::Form::Form.

Definition at line 736 of file Form.py.

00736                                                :
        """Check whether the form has a field of a certain id.
        """
        field = self._getOb(id, None)
        if field is None or not hasattr(aq_base(field), 'is_field'):
            return 0
        return include_disabled or field.get_value('enabled')

    security.declareProtected('View', 'get_field')
    def get_field(self, id, include_disabled=0):


Generated by  Doxygen 1.6.0   Back to index