|
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.107 2004-11-25 22:51:06 richard Exp $ |
| 18 | +# $Id: hyperdb.py,v 1.107.2.1 2005-03-03 22:12:35 richard Exp $ |
19 | 19 |
|
20 | 20 | """Hyperdatabase implementation, especially field types. |
21 | 21 | """ |
@@ -494,20 +494,20 @@ def lookup(self, keyvalue): |
494 | 494 | raise NotImplementedError |
495 | 495 |
|
496 | 496 | def find(self, **propspec): |
497 | | - """Get the ids of nodes in this class which link to the given nodes. |
| 497 | + '''Get the ids of items in this class which link to the given items. |
498 | 498 |
|
499 | | - 'propspec' consists of keyword args propname={nodeid:1,} |
| 499 | + 'propspec' consists of keyword args propname=itemid or |
| 500 | + propname={<itemid 1>:1, <itemid 2>:1, ...} |
500 | 501 | 'propname' must be the name of a property in this class, or a |
501 | | - KeyError is raised. That property must be a Link or Multilink |
502 | | - property, or a TypeError is raised. |
| 502 | + KeyError is raised. That property must be a Link or |
| 503 | + Multilink property, or a TypeError is raised. |
503 | 504 |
|
504 | | - Any node in this class whose 'propname' property links to any of the |
505 | | - nodeids will be returned. Used by the full text indexing, which knows |
506 | | - that "foo" occurs in msg1, msg3 and file7, so we have hits on these |
507 | | - issues: |
| 505 | + Any item in this class whose 'propname' property links to any of |
| 506 | + the itemids will be returned. Examples:: |
508 | 507 |
|
| 508 | + db.issue.find(messages='1') |
509 | 509 | db.issue.find(messages={'1':1,'3':1}, files={'7':1}) |
510 | | - """ |
| 510 | + ''' |
511 | 511 | raise NotImplementedError |
512 | 512 |
|
513 | 513 | def filter(self, search_matches, filterspec, sort=(None,None), |
|
0 commit comments