Skip to content

Commit 87cdc10

Browse files
author
Richard Jones
committed
[SF#503164] create and passwords
1 parent b3f7a44 commit 87cdc10

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Fixed:
1919
switching to a ConfigParser setup easier too, I hope.
2020
. #502951 ] adding new properties to old database
2121
. #502953 ] nosy-like treatment of other multilinks
22+
. #503164 ] create and passwords
2223

2324

2425
2002-01-08 - 0.4.0b1

roundup/admin.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: admin.py,v 1.3 2002-01-08 05:26:32 rochecompaan Exp $
19+
# $Id: admin.py,v 1.4 2002-01-14 06:51:09 richard Exp $
2020

2121
import sys, os, getpass, getopt, re, UserDict, shlex
2222
try:
@@ -535,18 +535,18 @@ def do_create(self, args):
535535

536536
if isinstance(proptype, hyperdb.Date):
537537
try:
538-
props[key] = date.Date(value)
538+
props[propname] = date.Date(value)
539539
except ValueError, message:
540540
raise UsageError, _('"%(value)s": %(message)s')%locals()
541541
elif isinstance(proptype, hyperdb.Interval):
542542
try:
543-
props[key] = date.Interval(value)
543+
props[propname] = date.Interval(value)
544544
except ValueError, message:
545545
raise UsageError, _('"%(value)s": %(message)s')%locals()
546546
elif isinstance(proptype, hyperdb.Password):
547-
props[key] = password.Password(value)
547+
props[propname] = password.Password(value)
548548
elif isinstance(proptype, hyperdb.Multilink):
549-
props[key] = value.split(',')
549+
props[propname] = value.split(',')
550550

551551
# check for the key property
552552
propname = cl.getkey()
@@ -995,6 +995,9 @@ def main(self):
995995

996996
#
997997
# $Log: not supported by cvs2svn $
998+
# Revision 1.3 2002/01/08 05:26:32 rochecompaan
999+
# Missing "self" in props_from_args
1000+
#
9981001
# Revision 1.2 2002/01/07 10:41:44 richard
9991002
# #500140 ] AdminTool.get_class() returns nothing
10001003
#

0 commit comments

Comments
 (0)