[Zope3-checkins] CVS: Zope3/src/zope/app - size.py:1.6
Steve Alexander
steve@cat-box.net
Tue, 3 Jun 2003 11:09:25 -0400
Update of /cvs-repository/Zope3/src/zope/app
In directory cvs.zope.org:/tmp/cvs-serv4056/src/zope/app
Modified Files:
size.py
Log Message:
Improved formatting. New implements() style.
=== Zope3/src/zope/app/size.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/size.py:1.5 Fri Jan 17 08:23:15 2003
+++ Zope3/src/zope/app/size.py Tue Jun 3 11:09:25 2003
@@ -17,13 +17,13 @@
"""
from zope.app.interfaces.size import ISized
+from zope.interface import implements
__metaclass__ = type
class DefaultSized:
+ implements(ISized)
- __implements__ = ISized
-
def __init__(self, obj):
try:
size = int(obj.getSize())
@@ -35,7 +35,7 @@
def sizeForSorting(self):
"""See ISized"""
return self._sortingSize
-
+
def sizeForDisplay(self):
"""See ISized"""
units, size = self._sortingSize