Page 1 of 1

Making Image Public

PostPosted: Fri May 04, 2012 6:29 pm
by icaoberg
I am making an HTML page that calls webgateway. I want my images to be public so that the HTML page can display thumbnails. how do i make them publicly available?

Re: Making Image Public

PostPosted: Mon May 07, 2012 8:32 am
by jmoore
In 4.3 and before, your options are to try the experimental webpublic or put the image in a share and activate the share for the viewing session. You can read more about webpublic under
For 4.4, this application has been moved out
as an example, since this functionality is now integrated into the mainline.

Cheers,
~Josh

Re: Making Image Public

PostPosted: Mon May 07, 2012 4:05 pm
by icaoberg
then let me ask another question: can i trigger the login page before accessing the html page? since my html page has calls to the webgateway thumbnail render, if i am not logged in, the html pages displays missing thumbnails. is there a way to go directly to login?

ivan

Re: Making Image Public

PostPosted: Tue May 08, 2012 3:24 pm
by wmoore
Hi,

If you're using the 4.3 (or earlier) version of OMERO web, you can use the @isUserConnected decorator to handle connection or redirection to login screen if you don't have a connection.

E.g. see webtest "dataset" as an example

https://github.com/openmicroscopy/openm ... ews.py#L31

We've actually tidied up the way we do this now, adding "conn" directly to the arguments list.

Code: Select all
@isUserConnected
def dataset(request, datasetId, conn=None, **kwargs):
    ds = conn.getObject("Dataset", datasetId)