diff MoinMoin/items/__init__.py @ 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 80043704f37e
children b02f88f4428e
line wrap: on
line diff
--- 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'))