diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-12 01:43:20 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-12 01:43:20 -0500 |
commit | f8a498f76d7bbcb42cf7bbc80164d98bfe57f8ab (patch) | |
tree | 00e4fa4923684f40763222f11b3f0fd8b13208d4 /libbe/ui/base.py | |
parent | 8b4ad37815cbef1e06532179f9ca098588d9cb44 (diff) | |
download | bugseverywhere-f8a498f76d7bbcb42cf7bbc80164d98bfe57f8ab.tar.gz |
Added libbe.ui.util.user for managing user ids.
Diffstat (limited to 'libbe/ui/base.py')
-rw-r--r-- | libbe/ui/base.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/libbe/ui/base.py b/libbe/ui/base.py index d26115f..e69de29 100644 --- a/libbe/ui/base.py +++ b/libbe/ui/base.py @@ -1,23 +0,0 @@ - def _setup_user_id(self, user_id): - if isinstance(self.storage, storage.vcs.base.VCS): - self.storage.user_id = user_id - def _guess_user_id(self): - if isinstance(self.storage, storage.vcs.base.VCS): - return self.storage.get_user_id() - def _set_user_id(self, old_user_id, new_user_id): - self._setup_user_id(new_user_id) - self._prop_save_settings(old_user_id, new_user_id) - - @_versioned_property(name="user_id", - doc= -"""The user's prefered name, e.g. 'John Doe <jdoe@example.com>'. Note -that the Arch VCS backend *enforces* ids with this format.""", - change_hook=_set_user_id, - generator=_guess_user_id) - def user_id(): return {} - - @_versioned_property(name="default_assignee", - doc= -"""The default assignee for new bugs e.g. 'John Doe <jdoe@example.com>'.""") - def default_assignee(): return {} - |