List Info

Thread: seems like a issue in pgsql session implementation




seems like a issue in pgsql session implementation
user name
2006-03-09 09:51:12
Hi,

I started using cherrypy a couple of days back. I find, as
non-web
developer background, highly useful. I am currently doing a
small
website with cherrypy and cheetah. While using sessions with
pgsql,
cherrypy has a hook for getting db connection, but it does
not give
back, the db connection to the pool after use.
I am wondering, if this is really a bug or problem with my
understanding of pg storage class.

I have added 2 lines in cherrypy 2.2 beta, to get around
this.


/cherrypy/filters/sessionfilters.py

line 345-350


    def __del__(self):
        if self.cursor:
            self.cursor.close()
        self.undb =
cherrypy.config.get('session_filer.put_db')()
        self.db.commit()
        self.undb(self.db)


do inform, if this is the right solution or what is the
alternative

regards

s


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://
groups.google.com/group/cherrypy-users
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )