omero.plugins.sessions module

Plugin for viewing and controlling active sessions for a local user.

Plugin read by omero.cli.Cli during initialization. The method(s) defined here will be added to the Cli class for later use.

class plugins.sessions.SessionsControl(*args: Any, **kwargs: Any)[source]

Bases: UserGroupControl

attach(store, server, name, uuid, props, exists, set_current=True)[source]
check_and_attach(store, server, name, uuid, props, check_group=False)[source]

Checks for conflicts in the settings for this session, and if there are none, then attempts an “attach()”. If that fails, the session is removed.

clear(args)[source]
close(args)[source]
conn(properties=None, profile=None, args=None)[source]

Either creates or returns the exiting omero.client instance. Uses the comm() method with the same signature.

file(args)[source]

Return the file associated with the current active session

group(args)[source]
handle(rv, action)[source]

Handles a new connection

help(args)[source]
keepalive(args)[source]
key(args)[source]

Return the key associated with the current active session

list(args)[source]
login(args)[source]

Login to a given server, and store session key locally.

USER, HOST, and PORT are set as args or in a ssh-style connection string. PASSWORD can be entered interactively, or passed via -w (insecure!). Alternatively, a session KEY can be passed with ‘-k’. Admin users can use –sudo=ADMINUSER to login for others.

Examples:

omero login example.com omero login user@example.com omero login user@example.com:24064 omero login -k SESSIONKEY example.com omero login –sudo=root user@example

logout(args)[source]
open(args)
store(args)[source]
timeout(args)[source]
who(args)[source]