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

def Formulator::Field::ZMIField::manage_messages (   self,

Change message texts.

Definition at line 523 of file Field.py.

00523                                       :
        """Change message texts.
        messages = self.message_values
        unicode_mode = self.get_unicode_mode()
        for message_key in self.get_error_names():
            message = REQUEST[message_key]
            if unicode_mode:
                message = unicode(message, 'UTF-8')
            # only save message if we're indeed changing from original
            if getattr(self.validator, message_key) != message:
                messages[message_key] = message

        self.message_values = messages
        if REQUEST:
            message="Content changed."
            return self.manage_messagesForm(self,REQUEST,

    security.declareProtected('View', 'index_html')
    def index_html(self, REQUEST):

Generated by  Doxygen 1.6.0   Back to index