Пример #1
0
 def 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..
     """
     return message_encode(message)
Пример #2
0
 def msgEncode(self, message):
     """
     Encodes a message in order to be passed as parameter in
     the query string.
     """
     return quote(message_encode(message))