[Checkins] SVN: zope.traversing/trunk/ AbsoluteURL now implements the fact that __call__ returns the same as __str__
Wolfgang Schnerring
wosc at wosc.de
Tue Jun 16 04:41:02 EDT 2009
Log message for revision 101044:
AbsoluteURL now implements the fact that __call__ returns the same as __str__
in a manner that it applies for subclasses, too, so they only have to override
__str__ and not both.
Changed:
U zope.traversing/trunk/CHANGES.txt
U zope.traversing/trunk/src/zope/traversing/browser/absoluteurl.py
-=-
Modified: zope.traversing/trunk/CHANGES.txt
===================================================================
--- zope.traversing/trunk/CHANGES.txt 2009-06-16 08:32:02 UTC (rev 101043)
+++ zope.traversing/trunk/CHANGES.txt 2009-06-16 08:41:02 UTC (rev 101044)
@@ -5,7 +5,9 @@
3.7.1 (unreleased)
------------------
-- ...
+- AbsoluteURL now implements the fact that __call__ returns the same as __str__
+ in a manner that it applies for subclasses, too, so they only have to override
+ __str__ and not both.
3.7.0 (2009-05-23)
------------------
Modified: zope.traversing/trunk/src/zope/traversing/browser/absoluteurl.py
===================================================================
--- zope.traversing/trunk/src/zope/traversing/browser/absoluteurl.py 2009-06-16 08:32:02 UTC (rev 101043)
+++ zope.traversing/trunk/src/zope/traversing/browser/absoluteurl.py 2009-06-16 08:41:02 UTC (rev 101044)
@@ -67,7 +67,8 @@
return url
- __call__ = __str__
+ def __call__(self):
+ return self.__str__()
def breadcrumbs(self):
context = self.context
@@ -119,7 +120,8 @@
return url
- __call__ = __str__
+ def __call__(self):
+ return self.__str__()
def breadcrumbs(self):
context = self.context
More information about the Checkins
mailing list