[Checkins] SVN: zope.site/trunk/ Remove more old unused code.
Dan Korostelev
nadako at gmail.com
Sat Feb 28 04:49:42 EST 2009
Log message for revision 97374:
Remove more old unused code.
Changed:
U zope.site/trunk/CHANGES.txt
U zope.site/trunk/src/zope/site/site.py
-=-
Modified: zope.site/trunk/CHANGES.txt
===================================================================
--- zope.site/trunk/CHANGES.txt 2009-02-28 09:38:30 UTC (rev 97373)
+++ zope.site/trunk/CHANGES.txt 2009-02-28 09:49:42 UTC (rev 97374)
@@ -21,6 +21,8 @@
- Change package's mailing list address to zope-dev at zope.org, as
zope3-dev at zope.org is now retired.
+- Remove old unused code. Update package description.
+
3.6.0 (2009-1-31)
-----------------
Modified: zope.site/trunk/src/zope/site/site.py
===================================================================
--- zope.site/trunk/src/zope/site/site.py 2009-02-28 09:38:30 UTC (rev 97373)
+++ zope.site/trunk/src/zope/site/site.py 2009-02-28 09:49:42 UTC (rev 97374)
@@ -174,16 +174,6 @@
self.subs = tuple(
[s for s in self.subs if s is not sub] )
- def __getRegistry(self, registration):
- """Determine the correct registry for the registration."""
- if interfaces.IUtilityRegistration.providedBy(registration):
- return self.utilities
- elif interfaces.IAdapterRegistration.providedBy(registration):
- return self.adapters
- raise ValueError("Unable to detect registration type or registration "
- "type is not supported. The registration object must "
- "provide `IAdapterRegistration` or "
- "`IUtilityRegistration`.")
def threadSiteSubscriber(ob, event):
"""A subscriber to BeforeTraverseEvent
More information about the Checkins
mailing list