diff MoinMoin/wsgiapp.py @ 4751:09c345615cd8

Put the finish method back on the context object so we can delay process such as thread joined until the end
author Andy Dawkins <andydawkins@gmail.com>
date Fri, 03 Jul 2009 15:17:23 +0100
parents edb6cb2cac43
children 5db0151a2df3
line wrap: on
line diff
--- a/MoinMoin/wsgiapp.py	Fri Jul 03 13:31:25 2009 +0100
+++ b/MoinMoin/wsgiapp.py	Fri Jul 03 15:17:23 2009 +0100
@@ -38,6 +38,11 @@
 
     context.lang = setup_i18n_postauth(context)
 
+    def finish():
+        pass
+    
+    context.finish = finish
+    
     context.reset()
 
     context.clock.stop('init')
@@ -68,6 +73,7 @@
         except MoinMoinFinish:
             return request
     finally:
+        context.finish()
         context.clock.stop('run')
 
 def remove_prefix(path, prefix=None):