diff MoinMoin/items/__init__.py @ 1003:8621c3e273a1

fixes #72. Implements the page to handle 404 error, and calls abort(404) in some view, when apropriate.
author Bruno Martin <bruno@hacklab.com.br>
date Fri, 28 Oct 2011 19:32:53 -0200
parents 5bf6d7a2ffcf
children 9fd0a6a988bb
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Fri Oct 28 00:45:47 2011 -0200
+++ b/MoinMoin/items/__init__.py	Fri Oct 28 19:32:53 2011 -0200
@@ -608,6 +608,12 @@
                    for name in names]
         return initials
 
+    delete_template = 'delete.html'
+    destroy_template = 'destroy.html'
+    diff_template = 'diff.html'
+    rename_template = 'rename.html'
+    revert_template = 'revert.html'
+
 class NonExistent(Item):
     def do_get(self, force_attachment=False, mimetype=None):
         abort(404)
@@ -695,12 +701,6 @@
                                form=form,
                               )
 
-    delete_template = 'delete.html'
-    destroy_template = 'destroy.html'
-    diff_template = 'diff.html'
-    rename_template = 'rename.html'
-    revert_template = 'revert.html'
-
     def _render_data_diff(self, oldrev, newrev):
         hash_name = HASH_ALGORITHM
         if oldrev.meta[hash_name] == newrev.meta[hash_name]: