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
- 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.
- 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.
- 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
- open(args)¶