[Moin-user] Attachments

Eric Davis endavis at gmail.com
Thu Mar 10 11:04:31 EST 2005


Ok, I have a problem with attachments on my 1.3.3 wiki.

Windows XP
     SP1 with latest patches
Python Version
     2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)]
MoinMoin Version
     Release 1.3.3 [Revision 1.3.3 release]
Apache Version
     2.0.52
mod_python Version
     3.1.3
pywin32
     build 203 for Python 2.3

Every time I try to save an attachment, I get a traceback:
   File "d:/mystuff/webstuff/moin1.3\MoinMoin\request.py", line 736, in run
     self.args = self.setup_args()
   File "d:/mystuff/webstuff/moin1.3\MoinMoin\request.py", line 1677, in 
setup_args
     i = wikiutil.decodeUserInput(i, self.decode_charsets)
   File "d:/mystuff/webstuff/moin1.3\MoinMoin\wikiutil.py", line 72, in 
decodeUserInput
     raise UnicodeError('The string "%s" cannot be decoded.' % s)

If I put sitecustomize.py in the site-packages dir and uncomment line 16 
in request.py

sys.setappdefaultencoding(config.charset)

then I can get text attachments to work, such as css,html,txt, etc...
However, binary files such as image files and zip files will still not 
work.

I cannot find the solution to this problem.

My config is on my personal wiki, which you can get from my userpage on 
the moin wiki.

Any help would be greatly appreciated

Thanks,

Eric Davis





More information about the Moin-user mailing list