Package omero :: Package gateway :: Package scripts :: Module dbhelpers :: Class UserEntry
[hide private]
[frames] | no frames]

Class UserEntry

source code


Instance Methods [hide private]
 
__init__(self, name, passwd, firstname='', middlename='', lastname='', email='', groupname=None, groupperms=None, groupowner=False, admin=False)
If no groupperms are passed, then check_group_perms will do nothing.
source code
 
fullname(self) source code
 
login(self, groupname=None) source code
 
create(self, client, password) source code
 
changePassword(self, client, password, rootpass) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
check_group_perms(client, group, groupperms)
If expected permissions have been set, then this will enforce equality.
source code
 
assert_group_perms(client, group, groupperms)
If expected permissions have been set, then this will change group permissions to those requested if not already equal.
source code
 
_getOrCreateGroup(client, groupname, groupperms=None) source code
 
addGroupToUser(client, groupname, groupperms=None) source code
 
setGroupForSession(client, groupname, groupperms=None) source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, passwd, firstname='', middlename='', lastname='', email='', groupname=None, groupperms=None, groupowner=False, admin=False)
(Constructor)

source code 

If no groupperms are passed, then check_group_perms will do nothing. The default perms for newly created groups is defined in _getOrCreateGroup

Overrides: object.__init__

check_group_perms(client, group, groupperms)
Static Method

source code 

If expected permissions have been set, then this will enforce equality. If groupperms are None, then nothing will be checked.

assert_group_perms(client, group, groupperms)
Static Method

source code 

If expected permissions have been set, then this will change group permissions to those requested if not already equal. If groupperms are None, then nothing will be checked.