pvl/verkko/web.py
changeset 26 589249097230
parent 24 45382e1c0be0
child 151 8a9f01036091
--- a/pvl/verkko/web.py	Wed Oct 24 18:13:14 2012 +0300
+++ b/pvl/verkko/web.py	Wed Oct 24 19:42:16 2012 +0300
@@ -126,4 +126,11 @@
         text = unicode(html.document(render))
 
         return Response(text, mimetype='text/html')
-
+    
+    def cleanup (self) :
+        """
+            After request processing. Do not fail :)
+        """
+        
+        # XXX: SQLAlchemy doesn't automatically close these...?
+        self.db.close()