Mercurial > p > roundup > code
diff roundup/hyperdb.py @ 2737:37e2b70105f7
removed safeget() from the API [SF#994750]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 08 Oct 2004 05:44:33 +0000 |
| parents | 7c472ed6babf |
| children | a8808157f892 |
line wrap: on
line diff
--- a/roundup/hyperdb.py Fri Oct 08 05:37:44 2004 +0000 +++ b/roundup/hyperdb.py Fri Oct 08 05:44:33 2004 +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.103 2004-10-08 00:56:11 richard Exp $ +# $Id: hyperdb.py,v 1.104 2004-10-08 05:44:33 richard Exp $ """Hyperdatabase implementation, especially field types. """ @@ -554,16 +554,6 @@ ''' raise NotImplementedError - def safeget(self, nodeid, propname, default=None): - """Safely get the value of a property on an existing node of this class. - - Return 'default' if the node doesn't exist. - """ - try: - return self.get(nodeid, propname) - except IndexError: - return default - def export_propnames(self): '''List the property names for export from this Class.''' propnames = self.getprops().keys()
