From 1864e9d3736125ae80c7be33dd181d7636d912e7 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 23 Nov 2008 08:16:19 -0500 Subject: Added bugdir user-id caching and save/load from settings file. --- libbe/rcs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libbe/rcs.py') diff --git a/libbe/rcs.py b/libbe/rcs.py index 10338b9..e467943 100644 --- a/libbe/rcs.py +++ b/libbe/rcs.py @@ -215,8 +215,12 @@ class RCS(object): """ Get the RCS's suggested user id (e.g. "John Doe "). If the RCS has not been configured with a username, return the user's - id. + id. You can override the automatic lookup procedure by setting the + RCS.user_id attribute to a string of your choice. """ + if hasattr(self, "user_id"): + if self.user_id != None: + return self.user_id id = self._rcs_get_user_id() if id == None: name = self._u_get_fallback_username() -- cgit