summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2d81a20)
raw | patch | inline | side by side (parent: 2d81a20)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 4 Oct 2001 02:16:15 +0000 (02:16 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 4 Oct 2001 02:16:15 +0000 (02:16 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@271 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/roundupdb.py | patch | blob | history |
diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py
index 1840147d725efa3c023ea3ba563196035b34c173..599d1886c587b10f5516a340e2dbcc41ea308847 100644 (file)
--- a/roundup/roundupdb.py
+++ b/roundup/roundupdb.py
# 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
"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()
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
#
# $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
#