From c2fdf661b09c912a0ed297a7f1fbd20b829c3a95 Mon Sep 17 00:00:00 2001 From: Eric Price Date: Tue, 29 Jan 2008 23:46:07 -0500 Subject: [PATCH] Fix bug during create/delete clearing the cache svn path=/trunk/web/; revision=264 --- webcommon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webcommon.py b/webcommon.py index 1b39a2c..4b58e6b 100644 --- a/webcommon.py +++ b/webcommon.py @@ -48,7 +48,7 @@ class Global(object): def clear(self): """Clear the state so future accesses reload it.""" - for attr in self.__dict__: + for attr in list(self.__dict__): if attr.startswith('__cache_'): delattr(self, attr) -- 1.7.9.5