Back to index

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

List of all members.

Public Member Functions

def __init__
def copy
def __copy__

Public Attributes

 modified

Static Private Attributes

tuple __slots__ = ('modified',)

Detailed Description

Definition at line 82 of file sessions.py.


Constructor & Destructor Documentation

Definition at line 85 of file sessions.py.

00085 
00086     def __init__(self, *args, **kwargs):
00087         def on_update(self):
00088             self.modified = True
00089         self.modified = False
00090         CallbackDict.__init__(self, on_update=on_update)
00091         dict.update(self, *args, **kwargs)


Member Function Documentation

Definition at line 102 of file sessions.py.

00102 
00103     def __copy__(self):
00104         return self.copy()
00105 

Here is the call graph for this function:

Create a flat copy of the dict.

Definition at line 92 of file sessions.py.

00092 
00093     def copy(self):
00094         """Create a flat copy of the dict."""
00095         missing = object()
00096         result = object.__new__(self.__class__)
00097         for name in self.__slots__:
00098             val = getattr(self, name, missing)
00099             if val is not missing:
00100                 setattr(result, name, val)
00101         return result

Here is the caller graph for this function:


Member Data Documentation

Reimplemented in MoinMoin.support.werkzeug.contrib.sessions.Session.

Definition at line 83 of file sessions.py.

Definition at line 87 of file sessions.py.


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