Close connections after creating the tables
authorPatrick Uiterwijk <puiterwijk@redhat.com>
Thu, 3 Sep 2015 23:32:00 +0000 (01:32 +0200)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Fri, 4 Sep 2015 02:42:38 +0000 (04:42 +0200)
commit2ff2f766737abf1615bca802677cb2386b32213d
treea891f4ce396afd7bf18cf731c81098d9e21fd692
parent3c242c8b745582acf3d68d7b965a5570dff35d99
Close connections after creating the tables

This needs to be done manually in the case of upgrades, because
there is no cherrypy end_request to help us close sessions.
Everytime we do a self._query a new connection is allocated, so
we need to make sure to terminate them all.

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Reviewed-by: Rob Crittenden <rcritten@redhat.com>
ipsilon/providers/openid/store.py
ipsilon/util/data.py
ipsilon/util/sessions.py