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

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

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

Definition at line 115 of file MessageCatalog.py.

00115                                      :
        """
        Decodes a message from an ASCII string.
        To be used in the user interface, to avoid problems with the
        encodings, HTML entities, etc..
        """
        message = base64.decodestring(message)
        type = message[0]
        message = message[1:]
        if type == 'u':
            return unicode(message, 'utf8')
        return message


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


Generated by  Doxygen 1.6.0   Back to index