Skip to content

Commit ec8fb7b

Browse files
author
Richard Jones
committed
Gordon, does this help?
1 parent f48f118 commit ec8fb7b

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

roundup/hyperdb.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: hyperdb.py,v 1.77 2002-07-18 11:27:47 richard Exp $
18+
# $Id: hyperdb.py,v 1.78 2002-07-21 03:26:37 richard Exp $
1919

2020
__doc__ = """
2121
Hyperdatabase implementation, especially field types.
@@ -418,6 +418,24 @@ def retire(self, nodeid):
418418
"""
419419
raise NotImplementedError
420420

421+
def destroy(self, nodeid):
422+
"""Destroy a node.
423+
424+
WARNING: this method should never be used except in extremely rare
425+
situations where there could never be links to the node being
426+
deleted
427+
WARNING: use retire() instead
428+
WARNING: the properties of this node will not be available ever again
429+
WARNING: really, use retire() instead
430+
431+
Well, I think that's enough warnings. This method exists mostly to
432+
support the session storage of the cgi interface.
433+
434+
The node is completely removed from the hyperdb, including all journal
435+
entries. It will no longer be available, and will generally break code
436+
if there are any references to the node.
437+
"""
438+
421439
def history(self, nodeid):
422440
"""Retrieve the journal of edits on a particular node.
423441
@@ -591,6 +609,9 @@ def Choice(name, db, *options):
591609

592610
#
593611
# $Log: not supported by cvs2svn $
612+
# Revision 1.77 2002/07/18 11:27:47 richard
613+
# ws
614+
#
594615
# Revision 1.76 2002/07/18 11:17:30 gmcm
595616
# Add Number and Boolean types to hyperdb.
596617
# Add conversion cases to web, mail & admin interfaces.

0 commit comments

Comments
 (0)