t.p.r.Summer(Accessor) : class documentation

Part of twisted.python.reflect View Source View In Hierarchy

Extend from this class to get the capability to maintain 'related sums'. Have a tuple in your class like the following:

   sums=(('amount','credit','credit_total'),
         ('amount','debit','debit_total'))

and the 'credit_total' member of the 'credit' member of self will always be incremented when the 'amount' member of self is incremented, similiarly for the debit versions.

Method reallySet This method does the work.

Inherited from Accessor:

Method __setattr__ Undocumented
Method __getattr__ Undocumented
Method __delattr__ Undocumented
Method reallyDel *actually* del self.k without incurring side-effects. This is a hook to be overridden by subclasses.
def reallySet(self, k, v): (source)
This method does the work.
API Documentation for Twisted, generated by pydoctor at 2012-06-04 17:20:01.