Created
October 27, 2016 06:07
-
-
Save atarkowska/55af58f29c00737d53a8d2aedbed3ada to your computer and use it in GitHub Desktop.
bin/omero shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(omero-virtualenv)bash-4.2$ bin/omero shell | |
Python 2.7.5 (default, Nov 20 2015, 02:00:19) | |
Type "copyright", "credits" or "license" for more information. | |
IPython 1.2.1 -- An enhanced Interactive Python. | |
? -> Introduction and overview of IPython's features. | |
%quickref -> Quick reference. | |
help -> Python's own help system. | |
object? -> Details about 'object', use 'object??' for extra details. | |
In [1]: from omero.gateway import BlitzGateway | |
In [2]: conn = BlitzGateway('user', '**passwd**', host='omero', port=4064) | |
In [3]: connected = conn.connect() | |
In [4]: conn.getEventContext() | |
Out[4]: | |
object #0 (::omero::sys::EventContext) | |
{ | |
shareId = -1 | |
sessionId = ***** | |
sessionUuid = ***** | |
userId = 0 | |
userName = root | |
groupId = 0 | |
groupName = system | |
isAdmin = True | |
eventId = -1 | |
eventType = Internal | |
memberOfGroups = | |
{ | |
[0] = 0 | |
[1] = 1 | |
} | |
leaderOfGroups = | |
{ | |
[0] = 0 | |
} | |
groupPermissions = object #1 (::omero::model::Permissions) | |
{ | |
_restrictions = | |
{ | |
} | |
_extendedRestrictions = | |
{ | |
} | |
_perm1 = -120 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment