Mercurial > p > roundup > code
diff roundup/hyperdb.py @ 419:831e91e23963
login_action and newuser_action return values were being ignored
Woohoo! Found that bloody re-login bug that was killing the mail gateway.
(also a minor cleanup in hyperdb)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 28 Nov 2001 21:55:35 +0000 |
| parents | 105a052508a0 |
| children | 350685601f37 |
line wrap: on
line diff
--- a/roundup/hyperdb.py Tue Nov 27 22:32:03 2001 +0000 +++ b/roundup/hyperdb.py Wed Nov 28 21:55:35 2001 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: hyperdb.py,v 1.36 2001-11-27 03:16:09 richard Exp $ +# $Id: hyperdb.py,v 1.37 2001-11-28 21:55:35 richard Exp $ __doc__ = """ Hyperdatabase implementation, especially field types. @@ -158,10 +158,12 @@ value = self.db.classes[link_class].lookup(value) except: raise IndexError, 'new property "%s": %s not a %s'%( - key, value, self.properties[key].classname) + key, value, link_class) + elif not self.db.hasnode(link_class, value): + raise IndexError, '%s has no node %s'%(link_class, value) + + # save off the value propvalues[key] = value - if not self.db.hasnode(link_class, value): - raise IndexError, '%s has no node %s'%(link_class, value) # register the link with the newly linked node self.db.addjournal(link_class, value, 'link', @@ -867,6 +869,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.36 2001/11/27 03:16:09 richard +# Another place that wasn't handling missing properties. +# # Revision 1.35 2001/11/22 15:46:42 jhermann # Added module docstrings to all modules. #
