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

 resource_factory
 name

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 ecmaview.py.


Constructor & Destructor Documentation

def kss.core.tests.ecmaview.ViewFile.__init__ (   self,
  name,
  path 
)

Definition at line 54 of file ecmaview.py.

00054 
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         self.name = name

Here is the caller graph for this function:


Member Function Documentation

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

Definition at line 61 of file ecmaview.py.

00061 
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__ = self.name
00068         return resource


Member Data Documentation

Definition at line 59 of file ecmaview.py.

Definition at line 56 of file ecmaview.py.


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