changeset 2392:6bd10c46c14a

Get rid of save_file.
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Sun, 12 May 2013 12:09:40 +0200
parents f9e818a159d0
children bc0e93311c8d
files hatta/wiki.py
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/hatta/wiki.py	Sun May 12 11:52:05 2013 +0200
+++ b/hatta/wiki.py	Sun May 12 12:09:40 2013 +0200
@@ -468,12 +468,8 @@
                 upload = request.files['data']
                 f = upload.stream
                 if f is not None and upload.filename is not None:
-                    try:
-                        self.storage.save_file(title, f.tmpname, author,
-                                               comment, parent)
-                    except AttributeError:
-                        self.storage.save_data(title, f.read(), author,
-                                               comment, parent)
+                    self.storage.save_data(title, f.read(), author,
+                                           comment, parent)
                 else:
                     self.storage.delete_page(title, author, comment)
                     url = request.get_url(self.front_page)