Mercurial > p > roundup > code
comparison roundup/hyperdb.py @ 883:6ee42c6e472b
ws
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 18 Jul 2002 11:27:47 +0000 |
| parents | de3da99a7c02 |
| children | cbefecea6c74 |
comparison
equal
deleted
inserted
replaced
| 882:b99948d32a2d | 883:6ee42c6e472b |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: hyperdb.py,v 1.76 2002-07-18 11:17:30 gmcm Exp $ | 18 # $Id: hyperdb.py,v 1.77 2002-07-18 11:27:47 richard Exp $ |
| 19 | 19 |
| 20 __doc__ = """ | 20 __doc__ = """ |
| 21 Hyperdatabase implementation, especially field types. | 21 Hyperdatabase implementation, especially field types. |
| 22 """ | 22 """ |
| 23 | 23 |
| 477 # XXX: change from spec - allows multiple props to match | 477 # XXX: change from spec - allows multiple props to match |
| 478 def find(self, **propspec): | 478 def find(self, **propspec): |
| 479 """Get the ids of nodes in this class which link to the given nodes. | 479 """Get the ids of nodes in this class which link to the given nodes. |
| 480 | 480 |
| 481 'propspec' consists of keyword args propname={nodeid:1,} | 481 'propspec' consists of keyword args propname={nodeid:1,} |
| 482 'propname' must be the name of a property in this class, or a | 482 'propname' must be the name of a property in this class, or a |
| 483 KeyError is raised. That property must be a Link or Multilink | 483 KeyError is raised. That property must be a Link or Multilink |
| 484 property, or a TypeError is raised. | 484 property, or a TypeError is raised. |
| 485 | 485 |
| 486 Any node in this class whose 'propname' property links to any of the | 486 Any node in this class whose 'propname' property links to any of the |
| 487 nodeids will be returned. Used by the full text indexing, which knows | 487 nodeids will be returned. Used by the full text indexing, which knows |
| 488 that "foo" occurs in msg1, msg3 and file7, so we have hits on these | 488 that "foo" occurs in msg1, msg3 and file7, so we have hits on these |
| 489 issues: | 489 issues: |
| 589 cl.create(name=options[i], order=i) | 589 cl.create(name=options[i], order=i) |
| 590 return hyperdb.Link(name) | 590 return hyperdb.Link(name) |
| 591 | 591 |
| 592 # | 592 # |
| 593 # $Log: not supported by cvs2svn $ | 593 # $Log: not supported by cvs2svn $ |
| 594 # Revision 1.76 2002/07/18 11:17:30 gmcm | |
| 595 # Add Number and Boolean types to hyperdb. | |
| 596 # Add conversion cases to web, mail & admin interfaces. | |
| 597 # Add storage/serialization cases to back_anydbm & back_metakit. | |
| 598 # | |
| 594 # Revision 1.75 2002/07/14 02:05:53 richard | 599 # Revision 1.75 2002/07/14 02:05:53 richard |
| 595 # . all storage-specific code (ie. backend) is now implemented by the backends | 600 # . all storage-specific code (ie. backend) is now implemented by the backends |
| 596 # | 601 # |
| 597 # Revision 1.74 2002/07/10 00:24:10 richard | 602 # Revision 1.74 2002/07/10 00:24:10 richard |
| 598 # braino | 603 # braino |
