Back to index

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

List of all members.

Public Member Functions

def __init__
def __call__

Static Public Attributes

 factory = None
 resource = None

Private Attributes

 __name
 __path
 __compress_level
 __caching
 __lmt_check_period
 __checker
 __rsrc

Detailed Description

Definition at line 119 of file resource.py.


Constructor & Destructor Documentation

def kss.core.pluginregistry._concatresource.resource.ResourceFactory.__init__ (   self,
  path,
  name,
  compress_level,
  caching,
  lmt_check_period,
  resource_factory = None,
  checker = None 
)

Definition at line 125 of file resource.py.

00125 
00126                 resource_factory=None, checker=None):
00127         self.__name = name
00128         self.__path = path
00129         self.__compress_level = compress_level
00130         self.__caching = caching
00131         self.__lmt_check_period = lmt_check_period
00132         if resource_factory is not None:
00133             self.resource = resource_factory
00134         # z3 only
00135         self.__checker = checker

Here is the caller graph for this function:


Member Function Documentation

Definition at line 136 of file resource.py.

00136 
00137     def __call__(self, request):
00138         try:
00139             rsrc = self.__rsrc
00140         except AttributeError:
00141             # Delayed creation. That assures that registry is set up by this time.
00142             rsrc = self.__rsrc = ICachedResource(self.factory(self.__path, self.__name,
00143                     self.__compress_level, self.__caching, self.__lmt_check_period))
00144         resource = self.resource(rsrc, request)
00145         # z3 only
00146         resource.__name__ = self.__name
00147         if self.__checker is not None:
00148             # z3 only
00149             resource.__Security_checker__ = self.__checker
00150         return resource

Here is the caller graph for this function:


Member Data Documentation

Definition at line 129 of file resource.py.

Definition at line 134 of file resource.py.

Definition at line 128 of file resource.py.

Definition at line 130 of file resource.py.

Definition at line 126 of file resource.py.

Definition at line 127 of file resource.py.

Definition at line 141 of file resource.py.


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