Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Private Attributes
kss.core.pluginregistry._concatresource.fileresource.File Class Reference
Inheritance diagram for kss.core.pluginregistry._concatresource.fileresource.File:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def getLastMod
def getContents

Public Attributes

 path

Private Attributes

 __name__

Detailed Description

Definition at line 21 of file fileresource.py.


Constructor & Destructor Documentation

Definition at line 24 of file fileresource.py.

00024 
00025     def __init__(self, path, name):
00026         self.path = path
00027         self.__name__ = name

Here is the caller graph for this function:


Member Function Documentation

Reimplemented in kss.core.pluginregistry._concatresource.fileresource.Image.

Definition at line 31 of file fileresource.py.

00031 
00032     def getContents(self):
00033         ##print "***** READ", self.path
00034         f = open(self.path, 'rb')
00035         data = f.read()
00036         f.close()
00037         content_type, enc = guess_content_type(self.path, data)
00038         return dict(data = data, content_type = content_type)

Here is the call graph for this function:

Definition at line 28 of file fileresource.py.

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


Member Data Documentation

Definition at line 26 of file fileresource.py.

Definition at line 25 of file fileresource.py.


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