Page 1 of 1

how can i use the commands of omero in omero web

PostPosted: Wed Aug 23, 2017 7:28 am
by saleht
Hi all,

i have maybe a stupid question :D
how can i use some omero commands in my web app
for example:
i want to be able to see all online people, i can get those people using the following command

Code: Select all
$bin/omero sessions who


can i used directly in my view.py file ?
if yes, which model should i import ?
if No , which API should i use to do this ?
i believe there is a class CurrentSessionsRequest maybe help me, but i cant see data member and functions of this Class

Re: how can i use the commands of omero in omero web

PostPosted: Wed Aug 23, 2017 7:39 am
by mtbc
Dear Saleh,

CurrentSessionsRequest has no arguments / parameters, it just returns a http://downloads.openmicroscopy.org/ome ... ponse.html which bears various useful information.

Cheers,
Mark

Re: how can i use the commands of omero in omero web

PostPosted: Wed Aug 23, 2017 8:56 am
by mtbc
Dear Saleh,

In chatting with Josh about this he points out that you may find some useful example Python client code in the implementation of the command you were mentioning, viz. https://github.com/openmicroscopy/openm ... ns.py#L714

We hope that helps. Cheers,

Mark