summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7f226fb)
svn path=/trunk/packages/sipb-xen-database/sipb-xen-database/; revision=287
assign_mapper(ctx, Disk, disk_table)
assign_mapper(ctx, Type, types_table)
assign_mapper(ctx, CDROM, cdroms_table)
assign_mapper(ctx, Disk, disk_table)
assign_mapper(ctx, Type, types_table)
assign_mapper(ctx, CDROM, cdroms_table)
+
+def clear_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?"""
+
+ ctx.registry.clear()