|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
18 | | -#$Id: back_anydbm.py,v 1.58 2002-08-01 15:06:24 gmcm Exp $ |
| 18 | +#$Id: back_anydbm.py,v 1.59 2002-08-16 04:28:13 richard Exp $ |
19 | 19 | ''' |
20 | 20 | This module defines a backend that saves the hyperdatabase in a database |
21 | 21 | chosen by anydbm. It is guaranteed to always be available in python |
@@ -1162,6 +1162,14 @@ def retire(self, nodeid): |
1162 | 1162 |
|
1163 | 1163 | self.fireReactors('retire', nodeid, None) |
1164 | 1164 |
|
| 1165 | + def is_retired(self, nodeid): |
| 1166 | + '''Return true if the node is retired. |
| 1167 | + ''' |
| 1168 | + node = self.db.getnode(cn, nodeid, cldb) |
| 1169 | + if node.has_key(self.db.RETIRED_FLAG): |
| 1170 | + return 1 |
| 1171 | + return 0 |
| 1172 | + |
1165 | 1173 | def destroy(self, nodeid): |
1166 | 1174 | """Destroy a node. |
1167 | 1175 | |
@@ -1795,6 +1803,12 @@ def __init__(self, db, classname, **properties): |
1795 | 1803 |
|
1796 | 1804 | # |
1797 | 1805 | #$Log: not supported by cvs2svn $ |
| 1806 | +#Revision 1.58 2002/08/01 15:06:24 gmcm |
| 1807 | +#Use same regex to split search terms as used to index text. |
| 1808 | +#Fix to back_metakit for not changing journaltag on reopen. |
| 1809 | +#Fix htmltemplate's do_link so [No <whatever>] strings are href'd. |
| 1810 | +#Fix bogus "nosy edited ok" msg - the **d syntax does NOT share d between caller and callee. |
| 1811 | +# |
1798 | 1812 | #Revision 1.57 2002/07/31 23:57:36 richard |
1799 | 1813 | # . web forms may now unset Link values (like assignedto) |
1800 | 1814 | # |
|
0 commit comments