Features planned for release 1.5.3

This is an incomplete list, and in no way an obligation the features will appear in that release. Please add user's contributions and wishes to the relevant section.

Done

Features likely to appear in the next release:

Needs testing

Unfinished

Reconsider for AFTER 1.5.3 release

Without special error handling, any exception will fail with the usual failure code, which will lead to faster bug fixing and less head scratching "why the links on this page are not found in a linkto search?". See http://martinfowler.com/ieeeSoftware/failFast.pdf Here is a patch:

--- orig/MoinMoin/Page.py
+++ mod/MoinMoin/Page.py
@@ -1493,22 +1493,21 @@
         redirecting possible output into null file.
         """
         request.clock.start('parsePagelinks')
-        class Null:
-            def write(self, str): pass
-        request.redirect(Null())
+        
+        class NullFile:
+            def write(self, str):
+                pass
+        
+        from MoinMoin.formatter.pagelinks import Formatter
+        formatter = Formatter(request, store_pagelinks=1)
+        page = Page(request, self.page_name, formatter=formatter)
         request.mode_getpagelinks = 1
+        request.redirect(NullFile())
         try:
-            try:
-                from MoinMoin.formatter.pagelinks import Formatter
-                formatter = Formatter(request, store_pagelinks=1)
-                page = Page(request, self.page_name, formatter=formatter)
-                page.send_page(request, content_only=1)
-            except:
-                import traceback
-                traceback.print_exc()
+            page.send_page(request, content_only=1)
         finally:
-            request.mode_getpagelinks = 0
             request.redirect()
+            request.mode_getpagelinks = 0
             if hasattr(request, '_fmt_hd_counters'):
                 del request._fmt_hd_counters
             request.clock.stop('parsePagelinks')

MoinMoin: MoinMoinTodo/Release 1.5.3 (last edited 2008-03-21 22:16:34 by ThomasWaldmann)