git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c090c85
)
fix bug when removing researchers
author
Scott Baker
<bakers@cs.arizona.edu>
Tue, 10 Mar 2009 03:03:19 +0000
(
03:03
+0000)
committer
Scott Baker
<bakers@cs.arizona.edu>
Tue, 10 Mar 2009 03:03:19 +0000
(
03:03
+0000)
cmdline/editRecord.py
patch
|
blob
|
history
diff --git
a/cmdline/editRecord.py
b/cmdline/editRecord.py
index
9742485
..
9f757af
100644
(file)
--- a/
cmdline/editRecord.py
+++ b/
cmdline/editRecord.py
@@
-130,7
+130,9
@@
def update_list(dict, listname, updates):
if hrn.startswith("-"):
real_hrn = hrn[1:]
if real_hrn in list:
- list.delete(real_hrn)
+ list.remove(real_hrn)
+ else:
+ print "Error:", real_hrn, "is not in researcher list:", list
else:
if not hrn in list:
list.append(hrn)