at-spi r1007 - trunk/pyatspi
- From: eitani svn gnome org
- To: svn-commits-list gnome org
- Subject: at-spi r1007 - trunk/pyatspi
- Date: Mon, 21 Apr 2008 23:39:37 +0100 (BST)
Author: eitani
Date: Mon Apr 21 22:39:36 2008
New Revision: 1007
URL: http://svn.gnome.org/viewvc/at-spi?rev=1007&view=rev
Log:
* accessible.py (_updateCache): Instead of removing the
_PropertyCache instance, just wipe it, so that cache updates are
persistent across all paperweights (bug #527229).
Modified:
trunk/pyatspi/ChangeLog
trunk/pyatspi/accessible.py
Modified: trunk/pyatspi/accessible.py
==============================================================================
--- trunk/pyatspi/accessible.py (original)
+++ trunk/pyatspi/accessible.py Mon Apr 21 22:39:36 2008
@@ -52,7 +52,8 @@
_CACHE_LEVEL = None
class _PropertyCache:
- pass
+ def wipe(self):
+ self.__dict__ = {}
class _UserData:
value = None
@@ -115,7 +116,7 @@
@type event: L{event.Event}
'''
try:
- del _ACCESSIBLE_CACHE[hash(event.source)]
+ _ACCESSIBLE_CACHE[hash(event.source)].wipe()
except KeyError:
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]