Skip to content

Commit 3b3aa19

Browse files
author
Richard Jones
committed
applied patch [SF#688595]
1 parent 1487924 commit 3b3aa19

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

roundup/hyperdb.py

Lines changed: 6 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.85 2003-02-18 01:57:38 richard Exp $
18+
# $Id: hyperdb.py,v 1.86 2003-02-26 04:55:57 richard Exp $
1919

2020
"""
2121
Hyperdatabase implementation, especially field types.
@@ -588,6 +588,11 @@ def items(self, protected=1):
588588
return l
589589
def has_key(self, name):
590590
return self.cl.getprops().has_key(name)
591+
def get(self, name, default=None):
592+
if self.has_key(name):
593+
return self[name]
594+
else:
595+
return default
591596
def __getattr__(self, name):
592597
if self.__dict__.has_key(name):
593598
return self.__dict__[name]

0 commit comments

Comments
 (0)