When trying to save edited page on windows, python unhandled exception occurs:
Traceback (most recent call last):
File "c:\Python25\lib\wsgiref\handlers.py", line 92, in run
self.result = application(self.environ, self.start_response)
File "c:\Python25\lib\werkzeug\utils.py", line 1539, in <lambda>
return _patch_wrapper(f, lambda *a: f(*a)(*a[-2:]))
File "D:\Wayfinder\a\hatta.py", line 1487, in application
response = endpoint(request, **values)
File "D:\Wayfinder\a\hatta.py", line 1054, in save
self.storage.save_text(title, data, author, comment)
File "D:\Wayfinder\a\hatta.py", line 104, in save_text
self.save_file(title, file_name, author, comment)
File "D:\Wayfinder\a\hatta.py", line 90, in save_file
os.rename(file_name, file_path)
WindowsError: [Error 183] Cannot create a file when that file already exists
Hatta version: 1.0.0
Werkzeug version: 0.3.1
Mercurial version: 1.0.2+20080813
Thank you for reporting this issue.
This happens because Windows doesn't allow you to rename a file to a name of existing file. It's fixed in the development version: http://devel.sheep.art.pl/devel/hatta-dev/rev/ed12adf46b8f
I will backport the fix to the stable version.