Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
kss.core.tests.ecmaview.ViewFile Class Reference

List of all members.

Public Member Functions

def __init__
def __get__

Public Attributes


Detailed Description

A wrapper for file resources that can be used in a view

Similar to ViewPageTemplate in usage.
(We only use the FileResource here, no distinction on content types
like in the resourceDirectory code.)

Definition at line 46 of file

Constructor & Destructor Documentation

def kss.core.tests.ecmaview.ViewFile.__init__ (   self,

Definition at line 54 of file

00055     def __init__(self, name, path):
00056         # Create the resource with cache control most proper for debugging.
00057         self.resource_factory = ConcatResourceFactory([path], name, 
00058                 compress_level='none', caching='memory', lmt_check_period=0.0,
00059                 checker=checker)
00060 = name

Here is the caller graph for this function:

Member Function Documentation

def kss.core.tests.ecmaview.ViewFile.__get__ (   self,
  cls = None 

Definition at line 61 of file

00062     def __get__(self, obj, cls=None):
00063         'The view wants a method only.'
00064         request = obj.request
00065         resource = self.resource_factory(request)
00066         resource.__parent__ = obj
00067         resource.__name__ =
00068         return resource

Member Data Documentation

Definition at line 59 of file

Definition at line 56 of file

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