|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
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 $ |
19 | 19 |
|
20 | 20 | __doc__ = """ |
21 | 21 | Hyperdatabase implementation, especially field types. |
@@ -418,6 +418,24 @@ def retire(self, nodeid): |
418 | 418 | """ |
419 | 419 | raise NotImplementedError |
420 | 420 |
|
| 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 | + |
421 | 439 | def history(self, nodeid): |
422 | 440 | """Retrieve the journal of edits on a particular node. |
423 | 441 |
|
@@ -591,6 +609,9 @@ def Choice(name, db, *options): |
591 | 609 |
|
592 | 610 | # |
593 | 611 | # $Log: not supported by cvs2svn $ |
| 612 | +# Revision 1.77 2002/07/18 11:27:47 richard |
| 613 | +# ws |
| 614 | +# |
594 | 615 | # Revision 1.76 2002/07/18 11:17:30 gmcm |
595 | 616 | # Add Number and Boolean types to hyperdb. |
596 | 617 | # Add conversion cases to web, mail & admin interfaces. |
|
0 commit comments