summaryrefslogtreecommitdiffstats
path: root/module/datatypes
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-01-03 17:14:02 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-01-03 17:14:02 +0100
commita6b5a69612f4dd744be20c326152a9d892150f98 (patch)
treef3a221e2c8e1b805b5b83c0136978b9fb36eae59 /module/datatypes
parentlittle cleanup, improved handling of custom exceptions via api (diff)
downloadpyload-a6b5a69612f4dd744be20c326152a9d892150f98.tar.xz
seperate api into several components
Diffstat (limited to 'module/datatypes')
-rw-r--r--module/datatypes/User.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/datatypes/User.py b/module/datatypes/User.py
index 3832653c7..bdf52d860 100644
--- a/module/datatypes/User.py
+++ b/module/datatypes/User.py
@@ -55,8 +55,9 @@ class User(UserData):
return self.hasRole(Role.Admin)
@property
- def handle(self):
- """ Internal user handle used for most operations (secondary share handle with primary user) """
+ def primary(self):
+ """ Primary user id, Internal user handle used for most operations
+ Secondary user account share id with primary user. Only Admins have no primary id. """
if self.hasRole(Role.Admin):
return None
- return self.user if self.user else self.uid
+ return self.user if self.user else self.uid \ No newline at end of file