[Checkins] SVN: z3c.blobfile/trunk/src/z3c/blobfile/interfaces.py -
removed interface definition as we use th one of zope.app.file
Grégoire Weber
zope.org at incept.ch
Sat Nov 10 08:52:15 EST 2007
Log message for revision 81710:
- removed interface definition as we use th one of zope.app.file
Changed:
D z3c.blobfile/trunk/src/z3c/blobfile/interfaces.py
-=-
Deleted: z3c.blobfile/trunk/src/z3c/blobfile/interfaces.py
===================================================================
--- z3c.blobfile/trunk/src/z3c/blobfile/interfaces.py 2007-11-10 13:51:39 UTC (rev 81709)
+++ z3c.blobfile/trunk/src/z3c/blobfile/interfaces.py 2007-11-10 13:52:15 UTC (rev 81710)
@@ -1,53 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Basic File interfaces.
-
-$Id: interfaces.py 73772 2007-03-27 15:09:19Z dobe $
-"""
-__docformat__ = 'restructuredtext'
-
-from zope.schema import BytesLine, Bytes
-from zope.interface import Interface
-from zope.app.file.i18n import ZopeMessageFactory as _
-
-
-class IFile(Interface):
-
- contentType = BytesLine(
- title = _(u'Content Type'),
- description=_(u'The content type identifies the type of data.'),
- default='',
- required=False,
- missing_value=''
- )
-
- data = Bytes(
- title=_(u'Data'),
- description=_(u'The actual content of the object.'),
- default='',
- missing_value='',
- required=False,
- )
-
- def getSize():
- """Return the byte-size of the data of the object."""
-
-class IImage(IFile):
- """This interface defines an Image that can be displayed.
- """
-
- def getImageSize():
- """Return a tuple (x, y) that describes the dimensions of
- the object.
- """
More information about the Checkins
mailing list