From 09f216d2c342b1c9ac296dc6416b5650db48dfad Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 4 Oct 2001 02:16:15 +0000 Subject: [PATCH] Forgot to pass the protected flag down *sigh*. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@271 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/roundupdb.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py index 1840147..599d188 100644 --- a/roundup/roundupdb.py +++ b/roundup/roundupdb.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundupdb.py,v 1.11 2001-10-04 02:12:42 richard Exp $ +# $Id: roundupdb.py,v 1.12 2001-10-04 02:16:15 richard Exp $ import re, os, smtplib, socket @@ -125,7 +125,7 @@ class Class(hyperdb.Class): "protected" flag is true, we include protected properties - those which may not be modified. """ - d = hyperdb.Class.getprops(self).copy() + d = hyperdb.Class.getprops(self, protected=protected).copy() if protected: d['creation'] = hyperdb.Date() d['activity'] = hyperdb.Date() @@ -186,7 +186,7 @@ class FileClass(Class): we include protected properties - those which may not be modified. ''' - d = Class.getprops(self).copy() + d = Class.getprops(self, protected=protected).copy() if protected: d['content'] = hyperdb.String() return d @@ -289,6 +289,14 @@ Roundup issue tracker # # $Log: not supported by cvs2svn $ +# Revision 1.11 2001/10/04 02:12:42 richard +# Added nicer command-line item adding: passing no arguments will enter an +# interactive more which asks for each property in turn. While I was at it, I +# fixed an implementation problem WRT the spec - I wasn't raising a +# ValueError if the key property was missing from a create(). Also added a +# protected=boolean argument to getprops() so we can list only the mutable +# properties (defaults to yes, which lists the immutables). +# # Revision 1.10 2001/08/07 00:24:42 richard # stupid typo # -- 2.30.2