fix bug when removing researchers
authorScott Baker <bakers@cs.arizona.edu>
Tue, 10 Mar 2009 03:03:19 +0000 (03:03 +0000)
committerScott Baker <bakers@cs.arizona.edu>
Tue, 10 Mar 2009 03:03:19 +0000 (03:03 +0000)
cmdline/editRecord.py

index 9742485..9f757af 100644 (file)
@@ -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)