Back to index

plone3  3.1.7
Public Member Functions
CMFCore.tests.base.dummy.DummyCachingManagerWithPolicy Class Reference
Inheritance diagram for CMFCore.tests.base.dummy.DummyCachingManagerWithPolicy:
Inheritance graph
[legend]
Collaboration diagram for CMFCore.tests.base.dummy.DummyCachingManagerWithPolicy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def getHTTPCachingHeaders
def getModTimeAndETag
def getPhysicalPath

Detailed Description

Definition at line 432 of file dummy.py.


Member Function Documentation

def CMFCore.tests.base.dummy.DummyCachingManagerWithPolicy.getHTTPCachingHeaders (   self,
  content,
  view_name,
  keywords,
  time = None 
)

Reimplemented from CMFCore.tests.base.dummy.DummyCachingManager.

Definition at line 438 of file dummy.py.

00438 
00439     def getHTTPCachingHeaders( self, content, view_name, keywords, time=None ):
00440 
00441          # if the object has a modified method, add it as last-modified
00442          if hasattr(content, 'modified'):
00443              headers = ( ('Last-modified', rfc1123_date(content.modified()) ), )
00444          return headers

def CMFCore.tests.base.dummy.DummyCachingManagerWithPolicy.getModTimeAndETag (   self,
  content,
  view_method,
  keywords,
  time = None 
)

Reimplemented from CMFCore.tests.base.dummy.DummyCachingManager.

Definition at line 445 of file dummy.py.

00445 
00446     def getModTimeAndETag(self, content, view_method, keywords, time=None ):
00447          modified_date = None
00448          if hasattr(content, 'modified'):
00449             modified_date = content.modified()
00450          set_last_modified = (modified_date is not None)
00451          return (modified_date, FAKE_ETAG, set_last_modified)

Definition at line 426 of file dummy.py.

00426 
00427     def getPhysicalPath(self):
00428         return ('baz',)
00429 

Here is the caller graph for this function:


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