Back to index

moin  1.9.0~rc2
Public Member Functions | Static Public Attributes | Static Private Attributes Class Reference
Inheritance diagram for
Inheritance graph

List of all members.

Public Member Functions

def calls_update

Static Public Attributes

 on_update = None
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')

Static Private Attributes

tuple __setitem__ = calls_update('__setitem__')
tuple __delitem__ = calls_update('__delitem__')

Detailed Description

Makes dicts call `self.on_update` on modifications.

Definition at line 130 of file

Member Function Documentation

Definition at line 135 of file

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

Member Data Documentation

Definition at line 145 of file

Definition at line 144 of file

Definition at line 146 of file

Definition at line 147 of file

Definition at line 148 of file

Definition at line 149 of file

Definition at line 150 of file

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