Module: deluge
Branch: multiuser
Commit: 7a1120a33d96b1032f3fac26de12c0ec18756ad3

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 7be876a..24f8bd1 100644
--- a/deluge/ui/client.py
+++ b/deluge/ui/client.py
@@ -756,6 +756,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