@@ -308,7 +308,8 @@ Here is the interface provided by the hyperdatabase::
308308 The 'journaltag' is a token that will be attached to the journal
309309 entries for any edits done on the database. If 'journaltag' is
310310 None, the database is opened in read-only mode: the Class.create(),
311- Class.set(), and Class.retire() methods are disabled.
311+ Class.set(), Class.retire(), and Class.restore() methods are
312+ disabled.
312313 """
313314
314315 def __getattr__(self, classname):
@@ -379,6 +380,12 @@ Here is the interface provided by the hyperdatabase::
379380 reuse the values of their key properties.
380381 """
381382
383+ def restore(self, nodeid):
384+ '''Restpre a retired node.
385+
386+ Make node available for all operations like it was before retirement.
387+ '''
388+
382389 def history(self, itemid):
383390 """Retrieve the journal of edits on a particular item.
384391
@@ -793,7 +800,7 @@ There are two kinds of detectors:
7938002. a reactor is triggered just after an item has been modified
794801
795802When the Roundup database is about to perform a
796- ``create()``, ``set()``, or ``retire()``
803+ ``create()``, ``set()``, ``retire()``, or ``restore ``
797804operation, it first calls any *auditors* that
798805have been registered for that operation on that class.
799806Any auditor may raise a *Reject* exception
@@ -814,14 +821,14 @@ register detectors on a given class of items::
814821 def audit(self, event, detector):
815822 """Register an auditor on this class.
816823
817- 'event' should be one of "create", "set", or "retire ".
824+ 'event' should be one of "create", "set", "retire", or "restore ".
818825 'detector' should be a function accepting four arguments.
819826 """
820827
821828 def react(self, event, detector):
822829 """Register a reactor on this class.
823830
824- 'event' should be one of "create", "set", or "retire ".
831+ 'event' should be one of "create", "set", "retire", or "restore ".
825832 'detector' should be a function accepting four arguments.
826833 """
827834
@@ -842,7 +849,7 @@ For a ``set()`` operation, newdata
842849contains only the names and values of properties that are about
843850to be changed.
844851
845- For a ``retire()`` operation, newdata is None.
852+ For a ``retire()`` or ``restore()`` operation, newdata is None.
846853
847854Reactors are called with the arguments::
848855
@@ -859,8 +866,8 @@ newly-created item and ``olddata`` is None.
859866For a ``set()`` operation, ``olddata``
860867contains the names and previous values of properties that were changed.
861868
862- For a ``retire()`` operation, ``itemid`` is the
863- id of the retired item and ``olddata`` is None.
869+ For a ``retire()`` or ``restore()`` operation, ``itemid`` is the id of
870+ the retired or restored item and ``olddata`` is None.
864871
865872Detector Example
866873~~~~~~~~~~~~~~~~
0 commit comments