wsgidav - Project Hosting on Google Code
構築は超簡単!on Ubuntu 9.04(OpenVZ VPS)
sudo apt-get update sudo apt-get install python-lxml mercurial hg clone https://wsgidav.googlecode.com/hg/ wsgidav cd wsgidav/ sudo python setup.py develop wsgidav --host=0.0.0.0 --port=8080 --root=/tmp
しかし残念ながら日本語は使えない。
2バイト文字を含むファイル名だと、エラーを吐く。
ERROR:root:Traceback (most recent call last): File "/root/wsgidav/wsgidav/server/ext_wsgiutils_server.py", line 176, in runWSGIApp for data in result: File "/root/wsgidav/wsgidav/wsgidav_app.py", line 338, in __call__ for v in self._application(environ, _start_response_wrapper): File "/root/wsgidav/wsgidav/debug_filter.py", line 171, in __call__ for v in iter(self._application(environ, start_response_wrapper)): File "/root/wsgidav/wsgidav/error_printer.py", line 112, in __call__ for v in self._application(environ, start_response): File "/root/wsgidav/wsgidav/http_authenticator.py", line 158, in __call__ return self._application(environ, start_response) File "/root/wsgidav/wsgidav/dir_browser.py", line 63, in __call__ return self._listDirectory(davres, environ, start_response) File "/root/wsgidav/wsgidav/dir_browser.py", line 108, in _listDirectory childList = davres.getDescendants(depth="1", addSelf=False) File "/root/wsgidav/wsgidav/dav_provider.py", line 383, in getDescendants for name in self.getMemberNames(): File "/root/wsgidav/wsgidav/fs_dav_provider.py", line 139, in getMemberNames assert isinstance(name, unicode) AssertionError
あと遅い。