names.creator() replaced by rcs.get_user_id().
authorW. Trevor King <wking@drexel.edu>
Thu, 20 Nov 2008 00:47:00 +0000 (19:47 -0500)
committerW. Trevor King <wking@drexel.edu>
Thu, 20 Nov 2008 00:47:00 +0000 (19:47 -0500)
becommands/list.py
libbe/names.py

index 8fd830b29c5c12bec2fab528708cb5a15b72352f..d43b5734b6037df5e4955f5a1dc46cefbb3f64fb 100644 (file)
@@ -15,7 +15,7 @@
 #    along with this program; if not, write to the Free Software
 #    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 """List bugs"""
-from libbe import cmdutil, names
+from libbe import cmdutil
 from libbe.bug import cmp_full, severity_values, status_values, \
     active_status_values, inactive_status_values
 import os
@@ -73,7 +73,7 @@ def execute(args):
             assigned = "all"
     for i in range(len(assigned)):
         if assigned[i] == '-':
-            assigned[i] = names.creator()
+            assigned[i] = tree.rcs.get_user_id()
     # select target
     if options.target != None:
         if options.target == "all":
index b866f75313ab848a93ab9c1da7f736bb125a79c4..6e0378e7d4f15d14f1230a4cc15cbc1bff51c288 100644 (file)
@@ -30,12 +30,6 @@ def uuid():
     if text[-1:] == '\n': text = text[:-1]
     return text
 
-def creator():
-    if sys.platform != "win32":
-        return os.environ["LOGNAME"]
-    else:
-        return os.environ["USERNAME"]
-
 def unique_name(bug, bugs):
     """
     Generate short names from uuids.  Picks the minimum number of