Commits

Thomas Waldmann  committed 2068f99

fix a few bugs exposed by the new view tests

  • Participants
  • Parent commits afcc778

Comments (0)

Files changed (2)

File MoinMoin/apps/frontend/views.py

     #      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')

File MoinMoin/items/__init__.py

     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):
     _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'))