From 524e132a1c281a679f2dfd5e3336d4999f49d81a Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sun, 19 Oct 2008 02:02:50 -0400 Subject: [PATCH] invirt.database.clear_cache should actually do something svn path=/trunk/packages/sipb-xen-database/; revision=1136 --- debian/changelog | 6 ++++++ python/database/models.py | 9 +++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/debian/changelog b/debian/changelog index 63672c2..0482b1e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sipb-xen-database (10.32) unstable; urgency=low + + * invirt.database.clear_cache should actually do something + + -- Evan Broder Sun, 19 Oct 2008 02:02:37 -0400 + sipb-xen-database (10.31) unstable; urgency=low * Database-managed VMs should never even think about bridging diff --git a/python/database/models.py b/python/database/models.py index 67d5de8..df3707f 100644 --- a/python/database/models.py +++ b/python/database/models.py @@ -119,10 +119,7 @@ session.mapper(CDROM, cdroms_table) session.mapper(Autoinstall, autoinstalls_table) def clear_cache(): - """Clear sqlalchemy's cache. + """Clear sqlalchemy's cache + """ - This _seems_ to be the way; it works, but the docs don't mention - it. Why is this so obscure?""" - - # XXX maybe we still need to do this, but it's not doc'd how. - #ctx.registry.clear() + session.clear() -- 1.7.9.5