Christian Boos wrote:
...
Maybe deleting the db before attempting validation
would help (patch attached).

Similar change probably needed for the wiki, too:

Index: web_ui.py
===================================================================
--- web_ui.py    (revision 3209)
+++ web_ui.py    (working copy)
@@ -95,6 +95,7 @@
                    action = 'preview'
                    self._render_editor(req, db, page, preview=True)
                else:
+                    del db
                    self._do_save(req, db, page)
            elif action == 'delete':
                self._do_delete(req, db, page)


A better fix would be to add the db to the req,
and be able to do something like: req.db.release()
to give back the db connection to the pool.
req.db() would either acquire the db connection
from the pool or reuse the already acquired one.

-- Christian
_______________________________________________
Trac-dev mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-dev

Reply via email to