Mercurial > p > roundup > code
changeset 3490:976bd292eaa0
db detectors got priority numbers (rfe [SF#1413165])
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Tue, 24 Jan 2006 08:30:49 +0000 |
| parents | 87e512f87bae |
| children | 0e5f15520e70 |
| files | doc/design.txt |
| diffstat | 1 files changed, 6 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/design.txt Tue Jan 24 08:27:54 2006 +0000 +++ b/doc/design.txt Tue Jan 24 08:30:49 2006 +0000 @@ -729,12 +729,6 @@ properties or "actor" cause a KeyError. """ - # New methods: - - def audit(self, event, detector): - def react(self, event, detector): - """Register a detector (see below for more details).""" - class IssueClass(Class): # Overridden methods: @@ -855,20 +849,22 @@ class of items:: class Class: - def audit(self, event, detector): + def audit(self, event, detector, priority=100): """Register an auditor on this class. 'event' should be one of "create", "set", "retire", or "restore". 'detector' should be a function accepting four - arguments. + arguments. Detectors are called in priority order, execution + order is undefined for detectors with the same priority. """ - def react(self, event, detector): + def react(self, event, detector, priority=100): """Register a reactor on this class. 'event' should be one of "create", "set", "retire", or "restore". 'detector' should be a function accepting four - arguments. + arguments. Detectors are called in priority order, execution + order is undefined for detectors with the same priority. """ Auditors are called with the arguments::
