Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes | Static Public Attributes
MoinMoin.support.werkzeug.datastructures.RequestCacheControl Class Reference
Inheritance diagram for MoinMoin.support.werkzeug.datastructures.RequestCacheControl:
Inheritance graph
[legend]
Collaboration diagram for MoinMoin.support.werkzeug.datastructures.RequestCacheControl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setdefault
def update
def pop
def popitem
def __setitem__
def __delitem__
def clear
def to_header
def __str__
def __repr__
def calls_update

Public Attributes

 on_update
 provided

Static Public Attributes

tuple max_stale = cache_property('max-stale', '*', int)
tuple min_fresh = cache_property('min-fresh', '*', int)
tuple no_transform = cache_property('no-transform', None, None)
tuple only_if_cached = cache_property('only-if-cached', None, bool)
tuple no_cache = cache_property('no-cache', '*', None)
tuple no_store = cache_property('no-store', None, bool)
tuple max_age = cache_property('max-age', -1, int)
tuple clear = calls_update('clear')
tuple pop = calls_update('pop')
tuple popitem = calls_update('popitem')
tuple setdefault = calls_update('setdefault')
tuple update = calls_update('update')

Detailed Description

A cache control for requests.  This is immutable and gives access
to all the request-relevant cache control headers.

.. versionadded:: 0.5
   In previous versions a `CacheControl` class existed that was used
   both for request and response.

Definition at line 1434 of file datastructures.py.


Member Function Documentation

Definition at line 102 of file datastructures.py.

00102 
00103     def __delitem__(self, key):
00104         is_immutable(self)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1427 of file datastructures.py.

01427 
01428     def __repr__(self):
01429         return '<%s %r>' % (
01430             self.__class__.__name__,
01431             self.to_header()
01432         )
01433 

Here is the call graph for this function:

def MoinMoin.support.werkzeug.datastructures.ImmutableDictMixin.__setitem__ (   self,
  key,
  value 
) [inherited]

Definition at line 99 of file datastructures.py.

00099 
00100     def __setitem__(self, key, value):
00101         is_immutable(self)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1424 of file datastructures.py.

01424 
01425     def __str__(self):
01426         return self.to_header()

Here is the call graph for this function:

Definition at line 135 of file datastructures.py.

00135 
00136     def calls_update(name):
00137         def oncall(self, *args, **kw):
00138             rv = getattr(super(UpdateDictMixin, self), name)(*args, **kw)
00139             if self.on_update is not None:
00140                 self.on_update(self)
00141             return rv
00142         oncall.__name__ = name
00143         return oncall

Definition at line 105 of file datastructures.py.

00105 
00106     def clear(self):
00107         is_immutable(self)
00108 

Here is the call graph for this function:

def MoinMoin.support.werkzeug.datastructures.ImmutableDictMixin.pop (   self,
  key,
  default = None 
) [inherited]

Definition at line 93 of file datastructures.py.

00093 
00094     def pop(self, key, default=None):
00095         is_immutable(self)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 96 of file datastructures.py.

00096 
00097     def popitem(self):
00098         is_immutable(self)

Here is the call graph for this function:

def MoinMoin.support.werkzeug.datastructures.ImmutableDictMixin.setdefault (   self,
  key,
  default = None 
) [inherited]

Definition at line 87 of file datastructures.py.

00087 
00088     def setdefault(self, key, default=None):
00089         is_immutable(self)

Here is the call graph for this function:

Convert the stored values into a cache control header.

Definition at line 1420 of file datastructures.py.

01420 
01421     def to_header(self):
01422         """Convert the stored values into a cache control header."""
01423         return dump_header(self)

Here is the call graph for this function:

Here is the caller graph for this function:

def MoinMoin.support.werkzeug.datastructures.ImmutableDictMixin.update (   self,
  args,
  kwargs 
) [inherited]

Definition at line 90 of file datastructures.py.

00090 
00091     def update(self, *args, **kwargs):
00092         is_immutable(self)

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 146 of file datastructures.py.

tuple MoinMoin.support.werkzeug.datastructures._CacheControl.max_age = cache_property('max-age', -1, int) [static, inherited]

Definition at line 1377 of file datastructures.py.

Definition at line 1443 of file datastructures.py.

Definition at line 1444 of file datastructures.py.

tuple MoinMoin.support.werkzeug.datastructures._CacheControl.no_cache = cache_property('no-cache', '*', None) [static, inherited]

Definition at line 1375 of file datastructures.py.

tuple MoinMoin.support.werkzeug.datastructures._CacheControl.no_store = cache_property('no-store', None, bool) [static, inherited]

Definition at line 1376 of file datastructures.py.

Reimplemented from MoinMoin.support.werkzeug.datastructures._CacheControl.

Definition at line 1445 of file datastructures.py.

Reimplemented from MoinMoin.support.werkzeug.datastructures.UpdateDictMixin.

Definition at line 1382 of file datastructures.py.

Definition at line 1446 of file datastructures.py.

Definition at line 147 of file datastructures.py.

Definition at line 148 of file datastructures.py.

Definition at line 1383 of file datastructures.py.

Definition at line 149 of file datastructures.py.

Definition at line 150 of file datastructures.py.


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