Can anyone tell me why the value for "Errors" is set to 'ignore' instead of 'strict' at line 412 in PendList.py (below)? If it were set to 'strict' instead, I think this code would work. Or would that be a mistake?
Thanks.
/usr/virthost/tmda-cgi/tmda-cgi-0.12/tmda-cgi.py 175 elif Cmd == "pending": 176 import PendList 177 Call(PendList) 178 elif Cmd == "restore": 179 pass Call = <function Call>, PendList = <module 'PendList' from '/usr/virthost/tmda-cgi/tmda-cgi-0.12/PendList.pyc'>
/usr/virthost/tmda-cgi/tmda-cgi-0.12/tmda-cgi.py in Call(Library=<module 'PendList' from '/usr/virthost/tmda-cgi/tmda-cgi-0.12/PendList.pyc'>, Str=None) 73 Library.Show(Str) 74 else: 75 Library.Show() 76 77 # Capture WebUID Library = <module 'PendList' from '/usr/virthost/tmda-cgi/tmda-cgi-0.12/PendList.pyc'>, Library.Show = <function Show>
/usr/virthost/tmda-cgi/tmda-cgi-0.12/PendList.py in Show()
410 value += Unicode.TranslateToUTF8(CharSet, decoded[0], "ignore")
411 else:
412 value += Unicode.TranslateToUTF8(CharSet, decoded[0], "ignore")
413 Subject = value
414 if len(Subject) > int(PVars[("PendingList", "CropSubject")]):
value = '', global Unicode = <module 'Unicode' from
'/usr/virthost/tmda-cgi/tmda-cgi-0.12/Unicode.pyc'>, Unicode.TranslateToUTF8 = <function
TranslateToUTF8>, CharSet = 'base64', decoded = ('Zero Balance', None)/usr/virthost/tmda-cgi/tmda-cgi-0.12/Unicode.py in TranslateToUTF8(CharSet='base64', Str='Zero Balance', Errors='ignore') 113 Uni = Decoder(Str, errors = Errors)[0] 114 except TypeError: 115 Uni = Decoder(Str)[0] 116 117 # Encode for UTF-8 Uni undefined, Decoder = <function base64_decode>, Str = 'Zero Balance'
/usr/local/lib/python2.3/encodings/base64_codec.py in base64_decode(input='Zero Balance', errors='ignore') 39 40 """ 41 assert errors == 'strict' 42 output = base64.decodestring(input) 43 return (output, len(input)) errors = 'ignore'
AssertionError:
args = ()_____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
