|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
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 $ |
19 | 19 | ''' |
20 | 20 | This module defines a backend that saves the hyperdatabase in a database |
21 | 21 | chosen by anydbm. It is guaranteed to always be available in python |
@@ -743,7 +743,7 @@ def create(self, **propvalues): |
743 | 743 | raise KeyError, '"%s" has no property "%s"'%(self.classname, |
744 | 744 | key) |
745 | 745 |
|
746 | | - if isinstance(prop, Link): |
| 746 | + if value is not None and isinstance(prop, Link): |
747 | 747 | if type(value) != type(''): |
748 | 748 | raise ValueError, 'link value must be String' |
749 | 749 | link_class = self.properties[key].classname |
@@ -1803,6 +1803,9 @@ def __init__(self, db, classname, **properties): |
1803 | 1803 |
|
1804 | 1804 | # |
1805 | 1805 | #$Log: not supported by cvs2svn $ |
| 1806 | +#Revision 1.59 2002/08/16 04:28:13 richard |
| 1807 | +#added is_retired query to Class |
| 1808 | +# |
1806 | 1809 | #Revision 1.58 2002/08/01 15:06:24 gmcm |
1807 | 1810 | #Use same regex to split search terms as used to index text. |
1808 | 1811 | #Fix to back_metakit for not changing journaltag on reopen. |
|
0 commit comments