Commit af762a3b authored by Jim Fulton's avatar Jim Fulton

Changed the way connections get registered with requests.

parent 86e1830c
......@@ -87,7 +87,7 @@
This module provides a wrapper that causes a database connection to be created
and used when bobo publishes a bobo_application object.
"""
__version__='$Revision: 1.4 $'[11:-2]
__version__='$Revision: 1.5 $'[11:-2]
StringType=type('')
......@@ -120,7 +120,7 @@ class ZApplicationWrapper:
# arrange for the connection to be closed when the request goes away
cleanup=Cleanup()
cleanup.__del__=conn.close
REQUEST[Cleanup]=cleanup
REQUEST._hold(cleanup)
v=conn.root()[aname]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment