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

def Localizer::MessageCatalog::MessageCatalog::message_encode (   self,
  message 
)

Encodes a message to an ASCII string.
To be used in the user interface, to avoid problems with the
encodings, HTML entities, etc..

Definition at line 106 of file MessageCatalog.py.

00106                                      :
        """
        Encodes a message to an ASCII string.
        To be used in the user interface, to avoid problems with the
        encodings, HTML entities, etc..
        """
        if type(message) is UnicodeType:
            msg = 'u' + message.encode('utf8')
        else:
            msg = 'n' + message

        return base64.encodestring(msg)


    security.declarePublic('message_decode')
    def message_decode(self, message):


Generated by  Doxygen 1.6.0   Back to index