changeset 1099:2068f99501c5

fix a few bugs exposed by the new view tests
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 27 Nov 2011 21:28:24 +0100
parents afcc778f8536
children b2cd15ea13df
files MoinMoin/apps/frontend/views.py MoinMoin/items/__init__.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Sun Nov 27 20:57:00 2011 +1000
+++ b/MoinMoin/apps/frontend/views.py	Sun Nov 27 21:28:24 2011 +0100
@@ -1407,7 +1407,7 @@
     #      If it happens for get_revision, we may just want to skip that rev in the list
     # TODO verify if it does crash when the item does not exist
     try:
-        item = flaskg.storage.get_item(item_name)
+        item = flaskg.storage[item_name]
     except AccessDenied:
         abort(403)
     rev1 = request.values.get('rev1')
--- a/MoinMoin/items/__init__.py	Sun Nov 27 20:57:00 2011 +1000
+++ b/MoinMoin/items/__init__.py	Sun Nov 27 21:28:24 2011 +0100
@@ -642,7 +642,7 @@
     def do_get(self, force_attachment=False, mimetype=None):
         abort(404)
 
-    def _convert(self):
+    def _convert(self, doc):
         abort(404)
 
     def do_modify(self, contenttype, template_name):
@@ -735,7 +735,7 @@
     _render_data_diff_text = _render_data_diff
     _render_data_diff_raw = _render_data_diff
 
-    def _convert(self):
+    def _convert(self, doc):
         return _("Impossible to convert the data to the contenttype: %(contenttype)s",
                  contenttype=request.values.get('contenttype'))