|
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.185 2005-02-14 05:39:37 richard Exp $ |
| 18 | +#$Id: back_anydbm.py,v 1.186 2005-03-03 22:16:32 richard Exp $ |
19 | 19 | '''This module defines a backend that saves the hyperdatabase in a |
20 | 20 | database chosen by anydbm. It is guaranteed to always be available in python |
21 | 21 | versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several |
@@ -1428,19 +1428,18 @@ def lookup(self, keyvalue): |
1428 | 1428 |
|
1429 | 1429 | # change from spec - allows multiple props to match |
1430 | 1430 | def find(self, **propspec): |
1431 | | - '''Get the ids of items in this class which link to the given items. |
| 1431 | + '''Get the ids of nodes in this class which link to the given nodes. |
1432 | 1432 |
|
1433 | | - 'propspec' consists of keyword args propname=itemid or |
1434 | | - propname={itemid:1, } |
| 1433 | + 'propspec' consists of keyword args propname=nodeid or |
| 1434 | + propname={nodeid:1, } |
1435 | 1435 | 'propname' must be the name of a property in this class, or a |
1436 | 1436 | KeyError is raised. That property must be a Link or |
1437 | 1437 | Multilink property, or a TypeError is raised. |
1438 | 1438 |
|
1439 | | - Any item in this class whose 'propname' property links to any of the |
1440 | | - itemids will be returned. Used by the full text indexing, which knows |
1441 | | - that "foo" occurs in msg1, msg3 and file7, so we have hits on these |
1442 | | - issues: |
| 1439 | + Any node in this class whose 'propname' property links to any of |
| 1440 | + the nodeids will be returned. Examples:: |
1443 | 1441 |
|
| 1442 | + db.issue.find(messages='1') |
1444 | 1443 | db.issue.find(messages={'1':1,'3':1}, files={'7':1}) |
1445 | 1444 | ''' |
1446 | 1445 | propspec = propspec.items() |
|
0 commit comments