You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web.py
Hi,
I don't see a web.close anywhere after I web.connect. Do I not
manually close a connection? I was going through the code in db.py and
I don't even see any where the cursor is being closed. What's going
on?
Aaron Swartz
unread,
Apr 8, 2008, 1:26:58 AM4/8/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to we...@googlegroups.com
1. Most people use DB pooling. 2. Cursors get closed when they're garbage collected. 3. If you really need to, you can do web.ctx.db.close() or web.ctx.db.cursor.close() I think.
BjornT
unread,
Apr 8, 2008, 1:41:39 AM4/8/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web.py
Yeah I'm using DBUtils so I'm pooling I guess. Just wondering. I'm so
used to C style closing of resources.