|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
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 $ |
19 | 19 |
|
20 | 20 | import re, os, smtplib, socket |
21 | 21 |
|
@@ -125,7 +125,7 @@ def getprops(self, protected=1): |
125 | 125 | "protected" flag is true, we include protected properties - those |
126 | 126 | which may not be modified. |
127 | 127 | """ |
128 | | - d = hyperdb.Class.getprops(self).copy() |
| 128 | + d = hyperdb.Class.getprops(self, protected=protected).copy() |
129 | 129 | if protected: |
130 | 130 | d['creation'] = hyperdb.Date() |
131 | 131 | d['activity'] = hyperdb.Date() |
@@ -186,7 +186,7 @@ def getprops(self, protected=1): |
186 | 186 | we include protected properties - those which may not be |
187 | 187 | modified. |
188 | 188 | ''' |
189 | | - d = Class.getprops(self).copy() |
| 189 | + d = Class.getprops(self, protected=protected).copy() |
190 | 190 | if protected: |
191 | 191 | d['content'] = hyperdb.String() |
192 | 192 | return d |
@@ -289,6 +289,14 @@ def email_footer(self, nodeid, msgid): |
289 | 289 |
|
290 | 290 | # |
291 | 291 | # $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 | +# |
292 | 300 | # Revision 1.10 2001/08/07 00:24:42 richard |
293 | 301 | # stupid typo |
294 | 302 | # |
|
0 commit comments