summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a16430a)
raw | patch | inline | side by side (parent: a16430a)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 13 Apr 2004 03:23:54 +0000 (03:23 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 13 Apr 2004 03:23:54 +0000 (03:23 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2279 57a73879-2fb5-44c3-a270-3262357dd7e2
doc/customizing.txt | patch | blob | history |
diff --git a/doc/customizing.txt b/doc/customizing.txt
index ddcd33ea6edf65df6d13d654fcdf924c41e65f1e..abc945c807334dc8e712d4c2d306f6684603909d 100644 (file)
--- a/doc/customizing.txt
+++ b/doc/customizing.txt
Customising Roundup
===================
-:Version: $Revision: 1.133 $
+:Version: $Revision: 1.134 $
.. This document borrows from the ZopeBook section on ZPT. The original is at:
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
__ design.html
+
+Detector API
+------------
+
+Auditors are called with the arguments::
+
+ audit(db, cl, itemid, newdata)
+
+where ``db`` is the database, ``cl`` is an instance of Class or
+IssueClass within the database, and ``newdata`` is a dictionary mapping
+property names to values.
+
+For a ``create()`` operation, the ``itemid`` argument is None and
+newdata contains all of the initial property values with which the item
+is about to be created.
+
+For a ``set()`` operation, newdata contains only the names and values of
+properties that are about to be changed.
+
+For a ``retire()`` or ``restore()`` operation, newdata is None.
+
+Reactors are called with the arguments::
+
+ react(db, cl, itemid, olddata)
+
+where ``db`` is the database, ``cl`` is an instance of Class or
+IssueClass within the database, and ``olddata`` is a dictionary mapping
+property names to values.
+
+For a ``create()`` operation, the ``itemid`` argument is the id of the
+newly-created item and ``olddata`` is None.
+
+For a ``set()`` operation, ``olddata`` contains the names and previous
+values of properties that were changed.
+
+For a ``retire()`` or ``restore()`` operation, ``itemid`` is the id of
+the retired or restored item and ``olddata`` is None.
+
+
Additional Detectors Ready For Use
----------------------------------