Skip to content

Commit e8516c9

Browse files
author
Richard Jones
committed
merge from maint-0-8
1 parent af62c2f commit e8516c9

File tree

5 files changed

+30
-33
lines changed

5 files changed

+30
-33
lines changed

doc/announcement.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Roundup manages a number of issues (with flexible properties such as
5151
The system will facilitate communication among the participants by managing
5252
discussions and notifying interested parties when issues are edited. One of
5353
the major design goals for Roundup that it be simple to get going. Roundup
54-
is therefore usable "out of the box" with any python 2.1+ installation. It
54+
is therefore usable "out of the box" with any python 2.3+ installation. It
5555
doesn't even need to be "installed" to be operational, though a
5656
disutils-based install script is provided.
5757

doc/design.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -452,20 +452,21 @@ Here is the interface provided by the hyperdatabase::
452452
id is returned; otherwise a KeyError is raised.
453453
"""
454454

455-
def find(self, propname, itemid):
455+
def find(self, **propspec):
456456
"""Get the ids of items in this class which link to the
457457
given items.
458458

459-
'propspec' consists of keyword args propname={itemid:1,}
460-
'propname' must be the name of a property in this class, or
461-
a KeyError is raised. That property must be a Link or
462-
Multilink property, or a TypeError is raised.
459+
'propspec' consists of keyword args propname=itemid or
460+
propname={<itemid 1>:1, <itemid 2>: 1, ...}
461+
'propname' must be the name of a property in this class,
462+
or a KeyError is raised. That property must
463+
be a Link or Multilink property, or a TypeError
464+
is raised.
463465

464466
Any item in this class whose 'propname' property links to
465-
any of the itemids will be returned. Used by the full text
466-
indexing, which knows that "foo" occurs in msg1, msg3 and
467-
file7, so we have hits on these issues:
467+
any of the itemids will be returned. Examples::
468468

469+
db.issue.find(messages='1')
469470
db.issue.find(messages={'1':1,'3':1}, files={'7':1})
470471
"""
471472

roundup/backends/back_anydbm.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
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 $
1919
'''This module defines a backend that saves the hyperdatabase in a
2020
database chosen by anydbm. It is guaranteed to always be available in python
2121
versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several
@@ -1428,19 +1428,18 @@ def lookup(self, keyvalue):
14281428

14291429
# change from spec - allows multiple props to match
14301430
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.
14321432
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, }
14351435
'propname' must be the name of a property in this class, or a
14361436
KeyError is raised. That property must be a Link or
14371437
Multilink property, or a TypeError is raised.
14381438
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::
14431441
1442+
db.issue.find(messages='1')
14441443
db.issue.find(messages={'1':1,'3':1}, files={'7':1})
14451444
'''
14461445
propspec = propspec.items()

roundup/backends/back_metakit.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: back_metakit.py,v 1.92 2005-02-14 02:48:11 richard Exp $
1+
# $Id: back_metakit.py,v 1.93 2005-03-03 22:16:32 richard Exp $
22
'''Metakit backend for Roundup, originally by Gordon McMillan.
33
44
Known Current Bugs:
@@ -1084,18 +1084,16 @@ def destroy(self, id):
10841084
def find(self, **propspec):
10851085
'''Get the ids of nodes in this class which link to the given nodes.
10861086
1087-
'propspec'
1088-
consists of keyword args propname={nodeid:1,}
1089-
'propname'
1090-
must be the name of a property in this class, or a
1091-
KeyError is raised. That property must be a Link or
1092-
Multilink property, or a TypeError is raised.
1087+
'propspec' consists of keyword args propname=nodeid or
1088+
propname={nodeid:1, }
1089+
'propname' must be the name of a property in this class, or a
1090+
KeyError is raised. That property must be a Link or
1091+
Multilink property, or a TypeError is raised.
10931092
1094-
Any node in this class whose propname property links to any of the
1095-
nodeids will be returned. Used by the full text indexing, which knows
1096-
that "foo" occurs in msg1, msg3 and file7; so we have hits on these
1097-
issues::
1093+
Any node in this class whose 'propname' property links to any of
1094+
the nodeids will be returned. Examples::
10981095
1096+
db.issue.find(messages='1')
10991097
db.issue.find(messages={'1':1,'3':1}, files={'7':1})
11001098
'''
11011099
propspec = propspec.items()

roundup/backends/rdbms_common.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.150 2005-03-02 14:03:44 a1s Exp $
1+
# $Id: rdbms_common.py,v 1.151 2005-03-03 22:16:32 richard Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -1896,11 +1896,10 @@ def find(self, **propspec):
18961896
KeyError is raised. That property must be a Link or
18971897
Multilink property, or a TypeError is raised.
18981898
1899-
Any node in this class whose 'propname' property links to any of the
1900-
nodeids will be returned. Used by the full text indexing, which knows
1901-
that "foo" occurs in msg1, msg3 and file7, so we have hits on these
1902-
issues:
1899+
Any node in this class whose 'propname' property links to any of
1900+
the nodeids will be returned. Examples::
19031901
1902+
db.issue.find(messages='1')
19041903
db.issue.find(messages={'1':1,'3':1}, files={'7':1})
19051904
'''
19061905
# shortcut

0 commit comments

Comments
 (0)