[Checkins] SVN: zope.file/trunk/src/zope/file/browser.txt there's no package named zope.app.size; actually import ISize now to check this piece of information
Thomas Lotze
tl at gocept.com
Thu Nov 26 10:33:45 EST 2009
Log message for revision 106032:
there's no package named zope.app.size; actually import ISize now to check this piece of information
Changed:
U zope.file/trunk/src/zope/file/browser.txt
-=-
Modified: zope.file/trunk/src/zope/file/browser.txt
===================================================================
--- zope.file/trunk/src/zope/file/browser.txt 2009-11-26 14:35:28 UTC (rev 106031)
+++ zope.file/trunk/src/zope/file/browser.txt 2009-11-26 15:33:45 UTC (rev 106032)
@@ -5,21 +5,23 @@
Object size
-----------
-The size of the file as presented in the contents view of a container
-is provided using an adapter implementing the
-`zope.app.size.interfaces.ISized` interface. Such an adapter is
-available for the file object.
+The size of the file as presented in the contents view of a container is
+provided using an adapter implementing the `zope.size.interfaces.ISized`
+interface. Such an adapter is available for the file object.
Let's do some imports and create a new file object:
>>> from zope.file.file import File
>>> from zope.file.browser import Sized
+ >>> from zope.size.interfaces import ISized
>>> f = File()
>>> f.size
0
>>> s = Sized(f)
+ >>> ISized.providedBy(s)
+ True
>>> s.sizeForSorting()
('byte', 0)
>>> s.sizeForDisplay()
More information about the checkins
mailing list