Skip to content

Commit 99c9b89

Browse files
author
Richard Jones
committed
Another place that wasn't handling missing properties.
1 parent 00efdd3 commit 99c9b89

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

roundup/hyperdb.py

Lines changed: 7 additions & 1 deletion
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: hyperdb.py,v 1.35 2001-11-22 15:46:42 jhermann Exp $
18+
# $Id: hyperdb.py,v 1.36 2001-11-27 03:16:09 richard Exp $
1919

2020
__doc__ = """
2121
Hyperdatabase implementation, especially field types.
@@ -634,6 +634,9 @@ def filter(self, filterspec, sort, group, num_re = re.compile('^\d+$')):
634634
continue
635635
# apply filter
636636
for t, k, v in filterspec:
637+
# this node doesn't have this property, so reject it
638+
if not node.has_key(k): break
639+
637640
if t == 0 and node[k] not in v:
638641
# link - if this node'd property doesn't appear in the
639642
# filterspec's nodeid list, skip it
@@ -864,6 +867,9 @@ def Choice(name, *options):
864867

865868
#
866869
# $Log: not supported by cvs2svn $
870+
# Revision 1.35 2001/11/22 15:46:42 jhermann
871+
# Added module docstrings to all modules.
872+
#
867873
# Revision 1.34 2001/11/21 04:04:43 richard
868874
# *sigh* more missing value handling
869875
#

0 commit comments

Comments
 (0)