Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
kss.core.pluginregistry._concatresource.fileresource.Image Class Reference
Inheritance diagram for kss.core.pluginregistry._concatresource.fileresource.Image:
Inheritance graph
Collaboration diagram for kss.core.pluginregistry._concatresource.fileresource.Image:
Collaboration graph

List of all members.

Public Member Functions

def getContents
def getLastMod

Public Attributes


Detailed Description

Image objects stored in external files.

Definition at line 39 of file

Member Function Documentation

Reimplemented from kss.core.pluginregistry._concatresource.fileresource.File.

Definition at line 42 of file

00043     def getContents(self):
00044         d = super(Image, self).getContens()
00045         if d ['content_type'] in (None, 'application/octet-stream'):
00046             ext = os.path.splitext(self.path)[1]
00047             if ext:
00048                 d['content_type'] = 'image/%s' % ext[1:]
00049         return d

Definition at line 28 of file

00029     def getLastMod(self):
00030         return os.path.getmtime(self.path)

Member Data Documentation

Definition at line 25 of file

The documentation for this class was generated from the following file: