Module: deluge
Branch: master
Commit: 105cb52cb00cfb0480bd342d77d8ae3ac9efa36a

Author: Pedro Algarvio <[email protected]>
Date:   Wed Dec 22 11:31:30 2010 +0000

Add method to return the current authenticated username.

---

 deluge/ui/client.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/deluge/ui/client.py b/deluge/ui/client.py
index 466b595..26cef63 100644
--- a/deluge/ui/client.py
+++ b/deluge/ui/client.py
@@ -758,6 +758,15 @@ class Client(object):
         """
         return self._daemon_proxy.get_bytes_sent()
 
+    def get_auth_user(self):
+        """
+        Returns the current authenticated username.
+
+        :returns: the authenticated username
+        :rtype: str
+        """
+        return self._daemon_proxy.username
+
     def get_auth_level(self):
         """
         Returns the authentication level the daemon returned upon 
authentication.

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to