[Checkins] SVN: zope.fanstatic/trunk/ fix a bug where clear could have been called on a dummy needed resources
Jan-Wijbrand Kolman
janwijbrand at gmail.com
Thu Jan 20 07:56:15 EST 2011
Log message for revision 119772:
fix a bug where clear could have been called on a dummy needed resources
Changed:
U zope.fanstatic/trunk/CHANGES.txt
U zope.fanstatic/trunk/src/zope/fanstatic/zopesupport.py
-=-
Modified: zope.fanstatic/trunk/CHANGES.txt
===================================================================
--- zope.fanstatic/trunk/CHANGES.txt 2011-01-20 12:47:57 UTC (rev 119771)
+++ zope.fanstatic/trunk/CHANGES.txt 2011-01-20 12:56:15 UTC (rev 119772)
@@ -1,12 +1,11 @@
CHANGES
*******
-0.10 (unreleased)
+0.9.1 (unreleased)
-----------------
-- Nothing changed yet.
+- Do not clear resources on DummyNeededResources objects.
-
0.9 (2011-01-20)
----------------
Modified: zope.fanstatic/trunk/src/zope/fanstatic/zopesupport.py
===================================================================
--- zope.fanstatic/trunk/src/zope/fanstatic/zopesupport.py 2011-01-20 12:47:57 UTC (rev 119771)
+++ zope.fanstatic/trunk/src/zope/fanstatic/zopesupport.py 2011-01-20 12:56:15 UTC (rev 119772)
@@ -51,7 +51,9 @@
@adapter(IHandleExceptionEvent)
def clear_needed_resources(event):
- fanstatic.clear_needed()
+ needed = fanstatic.get_needed()
+ if isinstance(needed, fanstatic.NeededResources):
+ needed.clear()
_sentinel = object()
More information about the checkins
mailing list