From 28b2fb89784f7a1f2dd61a4d157f6c511c5587fe Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 14 Apr 2011 14:13:36 -0400 Subject: Add libbe.ui.util.user.get_fallback_fullname() and use pwd when possible. This patch is based on Julien Muchembled's pwd suggestions. --- libbe/storage/vcs/base.py | 2 +- libbe/storage/vcs/git.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libbe/storage') diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py index aba6159..3ff6e7e 100644 --- a/libbe/storage/vcs/base.py +++ b/libbe/storage/vcs/base.py @@ -537,7 +537,7 @@ class VCS (libbe.storage.base.VersionedStorage): self.user_id = self._vcs_get_user_id() if self.user_id == None: # guess missing info - name = libbe.ui.util.user.get_fallback_username() + name = libbe.ui.util.user.get_fallback_fullname() email = libbe.ui.util.user.get_fallback_email() self.user_id = libbe.ui.util.user.create_user_id(name, email) return self.user_id diff --git a/libbe/storage/vcs/git.py b/libbe/storage/vcs/git.py index 5c17303..6de1d56 100644 --- a/libbe/storage/vcs/git.py +++ b/libbe/storage/vcs/git.py @@ -74,7 +74,7 @@ class Git(base.VCS): if name != '' or email != '': # got something! # guess missing info, if necessary if name == '': - name = _user.get_fallback_username() + name = _user.get_fallback_fullname() if email == '': email = _user.get_fallback_email() return _user.create_user_id(name, email) -- cgit