aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/ui
diff options
context:
space:
mode:
authorwking <wking@thialfi>2010-06-22 11:30:26 -0400
committerwking <wking@thialfi>2010-06-22 11:30:26 -0400
commit401152d6eec5167043dedde60c0a64d0affbd120 (patch)
treeb0539d31267c123032685de7b5d2da346e18c94e /libbe/ui
parenta4ec8a0c99b2a918fa8a5ae1cab36652d2d9c83e (diff)
downloadbugseverywhere-401152d6eec5167043dedde60c0a64d0affbd120.tar.gz
Use os.path.join in libbe.storage.util.config.path.
Versus previous hardcoded "~/.bugs_everywhere". Also improve docstrings for * libbe.storage.util.config.path * libbe.ui.util.user.get_user_id
Diffstat (limited to 'libbe/ui')
-rw-r--r--libbe/ui/util/user.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbe/ui/util/user.py b/libbe/ui/util/user.py
index 460a1dd..412575f 100644
--- a/libbe/ui/util/user.py
+++ b/libbe/ui/util/user.py
@@ -101,10 +101,12 @@ def get_user_id(storage=None):
The source order is:
- 1. Global BE configuration.
+ 1. Global BE configuration [#]_ (default section, setting 'user').
2. `storage.get_user_id`, if that function is defined.
3. :func:`get_fallback_username` and :func:`get_fallback_email`.
+ .. [#] See :mod:`libbe.storage.util.config`.
+
Notes
-----
Sometimes the storage will keep track of the user ID (e.g. most