image.image - Image File Components

Components for handling image files.

class waeup.kofa.image.image.KofaImageFile(filename, data)[source]

Bases: hurry.file.file.HurryFile

A file prepared for storing image files.

This file type is built upon hurry.file.HurryFile but implements a derived marker interface to distuingish it from regular hurry files.

To create a KofaImageFile you should use createKofaImageFile().

__doc__ = 'A file prepared for storing image files.\n\n This file type is built upon :class:`hurry.file.HurryFile` but\n implements a derived marker interface to distuingish it from\n regular hurry files.\n\n To create a :class:`KofaImageFile` you should use\n :func:`createKofaImageFile`.\n '
__implemented__ = <implementedBy waeup.kofa.image.image.KofaImageFile>
__module__ = 'waeup.kofa.image.image'
__ne__(other)[source]
__provides__

Special descriptor for class __provides__

The descriptor caches the implementedBy info, so that we can get declarations for objects without instance-specific interfaces a bit quicker.

For example:

>>> from zope.interface import Interface
>>> class IFooFactory(Interface):
...     pass
>>> class IFoo(Interface):
...     pass
>>> class C(object):
...     implements(IFoo)
...     classProvides(IFooFactory)
>>> [i.getName() for i in C.__provides__]
['IFooFactory']
>>> [i.getName() for i in C().__provides__]
['IFoo']
waeup.kofa.image.image.createKofaImageFile(filename, f)[source]