Code

. #503164 ] create and passwords
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 14 Jan 2002 06:53:10 +0000 (06:53 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 14 Jan 2002 06:53:10 +0000 (06:53 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@541 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
roundup/admin.py

index 85e33f81da9846f117e0bb4ce9c14f37521054f0..6f8192d24b1f83f4e91680a1dbd06e74456e633d 100644 (file)
@@ -19,6 +19,7 @@ Fixed:
    switching to a ConfigParser setup easier too, I hope.
  . #502951 ] adding new properties to old database
  . #502953 ] nosy-like treatment of other multilinks
+ . #503164 ] create and passwords
 
 
 2002-01-08 - 0.4.0b1
index d7b702a5f1914db73ed0015005c16a0b954155f4..34ec404e672527ce05817fbc137fdeceb4ad1b43 100644 (file)
@@ -16,7 +16,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: admin.py,v 1.3 2002-01-08 05:26:32 rochecompaan Exp $
+# $Id: admin.py,v 1.4 2002-01-14 06:51:09 richard Exp $
 
 import sys, os, getpass, getopt, re, UserDict, shlex
 try:
@@ -535,18 +535,18 @@ Command help:
 
             if isinstance(proptype, hyperdb.Date):
                 try:
-                    props[key] = date.Date(value)
+                    props[propname] = date.Date(value)
                 except ValueError, message:
                     raise UsageError, _('"%(value)s": %(message)s')%locals()
             elif isinstance(proptype, hyperdb.Interval):
                 try:
-                    props[key] = date.Interval(value)
+                    props[propname] = date.Interval(value)
                 except ValueError, message:
                     raise UsageError, _('"%(value)s": %(message)s')%locals()
             elif isinstance(proptype, hyperdb.Password):
-                props[key] = password.Password(value)
+                props[propname] = password.Password(value)
             elif isinstance(proptype, hyperdb.Multilink):
-                props[key] = value.split(',')
+                props[propname] = value.split(',')
 
         # check for the key property
         propname = cl.getkey()
@@ -995,6 +995,9 @@ if __name__ == '__main__':
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.3  2002/01/08 05:26:32  rochecompaan
+# Missing "self" in props_from_args
+#
 # Revision 1.2  2002/01/07 10:41:44  richard
 # #500140 ] AdminTool.get_class() returns nothing
 #