[CMF-checkins] SVN: CMF/trunk/CMFCore/ Fix double-oops pointed out
by efge.
Tres Seaver
tseaver at palladion.com
Tue Jan 31 19:15:02 EST 2006
Log message for revision 41522:
Fix double-oops pointed out by efge.
Changed:
U CMF/trunk/CMFCore/CookieCrumbler.py
U CMF/trunk/CMFCore/tests/test_CookieCrumbler.py
-=-
Modified: CMF/trunk/CMFCore/CookieCrumbler.py
===================================================================
--- CMF/trunk/CMFCore/CookieCrumbler.py 2006-01-31 22:24:26 UTC (rev 41521)
+++ CMF/trunk/CMFCore/CookieCrumbler.py 2006-02-01 00:15:00 UTC (rev 41522)
@@ -399,7 +399,7 @@
if event.oldParent is not None:
# unregister before traverse hook
handle = ob.meta_type + '/' + ob.getId()
- BeforeTraverse.unregisterBeforeTraverse(event.newParent, handle)
+ BeforeTraverse.unregisterBeforeTraverse(event.oldParent, handle)
class ResponseCleanup:
def __init__(self, resp):
Modified: CMF/trunk/CMFCore/tests/test_CookieCrumbler.py
===================================================================
--- CMF/trunk/CMFCore/tests/test_CookieCrumbler.py 2006-01-31 22:24:26 UTC (rev 41521)
+++ CMF/trunk/CMFCore/tests/test_CookieCrumbler.py 2006-02-01 00:15:00 UTC (rev 41522)
@@ -382,7 +382,7 @@
container._delObject(self._CC_ID)
bt_removed = getattr(container, '__before_traverse__')
- self.assertEqual(len(bt_removed.items()), 1)
+ self.assertEqual(len(bt_removed.items()), 0)
def test_suite():
return unittest.TestSuite((
More information about the CMF-checkins
mailing list