We're Hiring!

how can i use the commands of omero in omero web

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

how can i use the commands of omero in omero web

Postby saleht » Wed Aug 23, 2017 7:28 am

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
saleht
 
Posts: 96
Joined: Wed Nov 16, 2016 1:06 pm

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

Postby mtbc » Wed Aug 23, 2017 7:39 am

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
User avatar
mtbc
Team Member
 
Posts: 282
Joined: Tue Oct 23, 2012 10:59 am
Location: Dundee, Scotland

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

Postby mtbc » Wed Aug 23, 2017 8:56 am

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
User avatar
mtbc
Team Member
 
Posts: 282
Joined: Tue Oct 23, 2012 10:59 am
Location: Dundee, Scotland


Return to Developer Discussion

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron