Skip to content

Commit 9d4fb9f

Browse files
author
Richard Jones
committed
handle "unset" initial Link values (!)
1 parent 924627b commit 9d4fb9f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

roundup/backends/back_anydbm.py

Lines changed: 5 additions & 2 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.59 2002-08-16 04:28:13 richard Exp $
18+
#$Id: back_anydbm.py,v 1.60 2002-08-19 00:23:19 richard Exp $
1919
'''
2020
This module defines a backend that saves the hyperdatabase in a database
2121
chosen by anydbm. It is guaranteed to always be available in python
@@ -743,7 +743,7 @@ def create(self, **propvalues):
743743
raise KeyError, '"%s" has no property "%s"'%(self.classname,
744744
key)
745745

746-
if isinstance(prop, Link):
746+
if value is not None and isinstance(prop, Link):
747747
if type(value) != type(''):
748748
raise ValueError, 'link value must be String'
749749
link_class = self.properties[key].classname
@@ -1803,6 +1803,9 @@ def __init__(self, db, classname, **properties):
18031803

18041804
#
18051805
#$Log: not supported by cvs2svn $
1806+
#Revision 1.59 2002/08/16 04:28:13 richard
1807+
#added is_retired query to Class
1808+
#
18061809
#Revision 1.58 2002/08/01 15:06:24 gmcm
18071810
#Use same regex to split search terms as used to index text.
18081811
#Fix to back_metakit for not changing journaltag on reopen.

0 commit comments

Comments
 (0)