aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-11-19 19:47:00 -0500
committerW. Trevor King <wking@drexel.edu>2008-11-19 19:47:00 -0500
commitf3d13ed7f24dbf24ce431e862dac5ce80f093521 (patch)
treefc2b6c227cdfbf3908e4d085abf22d67bd758774
parent0e57e0c247f7499f5d54e135d116c2a30a74146e (diff)
downloadbugseverywhere-f3d13ed7f24dbf24ce431e862dac5ce80f093521.tar.gz
names.creator() replaced by rcs.get_user_id().
-rw-r--r--becommands/list.py4
-rw-r--r--libbe/names.py6
2 files changed, 2 insertions, 8 deletions
diff --git a/becommands/list.py b/becommands/list.py
index 8fd830b..d43b573 100644
--- a/becommands/list.py
+++ b/becommands/list.py
@@ -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":
diff --git a/libbe/names.py b/libbe/names.py
index b866f75..6e0378e 100644
--- a/libbe/names.py
+++ b/libbe/names.py
@@ -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