Skip to content

Commit 295583b

Browse files
author
Richard Jones
committed
Forgot to pass the protected flag down *sigh*.
1 parent c526ae4 commit 295583b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

roundup/roundupdb.py

Lines changed: 11 additions & 3 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: roundupdb.py,v 1.11 2001-10-04 02:12:42 richard Exp $
18+
# $Id: roundupdb.py,v 1.12 2001-10-04 02:16:15 richard Exp $
1919

2020
import re, os, smtplib, socket
2121

@@ -125,7 +125,7 @@ def getprops(self, protected=1):
125125
"protected" flag is true, we include protected properties - those
126126
which may not be modified.
127127
"""
128-
d = hyperdb.Class.getprops(self).copy()
128+
d = hyperdb.Class.getprops(self, protected=protected).copy()
129129
if protected:
130130
d['creation'] = hyperdb.Date()
131131
d['activity'] = hyperdb.Date()
@@ -186,7 +186,7 @@ def getprops(self, protected=1):
186186
we include protected properties - those which may not be
187187
modified.
188188
'''
189-
d = Class.getprops(self).copy()
189+
d = Class.getprops(self, protected=protected).copy()
190190
if protected:
191191
d['content'] = hyperdb.String()
192192
return d
@@ -289,6 +289,14 @@ def email_footer(self, nodeid, msgid):
289289

290290
#
291291
# $Log: not supported by cvs2svn $
292+
# Revision 1.11 2001/10/04 02:12:42 richard
293+
# Added nicer command-line item adding: passing no arguments will enter an
294+
# interactive more which asks for each property in turn. While I was at it, I
295+
# fixed an implementation problem WRT the spec - I wasn't raising a
296+
# ValueError if the key property was missing from a create(). Also added a
297+
# protected=boolean argument to getprops() so we can list only the mutable
298+
# properties (defaults to yes, which lists the immutables).
299+
#
292300
# Revision 1.10 2001/08/07 00:24:42 richard
293301
# stupid typo
294302
#

0 commit comments

Comments
 (0)