What’s new for OMERO 5.4 for developers¶
Python BlitzGateway¶
New in 5.4.0 are Restricted Administrators. These are Admins that have a subset of Full Admin privileges.
Previously if
conn.isAdmin()
is true for the current user, they could perform all actions allowed for Full Admins.Now, this will return True for Full Admins and Restricted Admins, but the user may not be allowed to perform some actions.
Use
conn.isFullAdmin()
to check if user is a Full Administrator.To get the current user’s privileges, use
conn.getCurrentAdminPrivileges()
This will return list e.g.
["Chgrp", "Chown", "ModifyGroup", "ModifyGroupMembership", Sudo", "DeleteFile"]
Can also check this for another user with
conn.getAdminPrivileges(user_id)
For a full list of available privileges, use:
for p in conn.getEnumerationEntries('AdminPrivilege'): print p.getValue()
See Administrators with restricted privileges to know which privileges are required for which actions.
Java Gateway¶
- Added various methods for dealing with Administrators with restricted privileges to the AdminFacility.
Deprecations¶
OMERO Model¶
- ome.model.jobs.ImportJob to be removed in OMERO 6.0.
- ome.model.roi.Path to be removed in OMERO 6.0.
Python BlitzGateway¶
channel.isReverseIntensity()
. Renamed tochannel.isInverted()
.image.setReverseIntensity()
. Renamed toimage.setChannelInverted()
.image.setActiveChannels(reverseMaps)
parameter renamed toinvertMaps
.- In
conn.createOriginalFileFromFileObj()
andconn.createOriginalFileFromLocalFile()
thens
parameter is deprecated.