Table Of Contents

Previous topic

omeroweb.webredirect package

This Page

omeroweb.webstart package


omeroweb.webstart.decorators module

Decorators for use with the webstart application.

class omeroweb.webstart.decorators.login_required(ignore_login_fail=False, setGroupContext=False, login_redirect=None, **kwargs)

Bases: omeroweb.webclient.decorators.login_required

webstart specific extension of the OMERO.web login_required() decorator.

class omeroweb.webstart.decorators.render_response

Bases: omeroweb.webclient.decorators.render_response

Subclass for adding additional data to the ‘context’ dict passed to templates

prepare_context(request, context, *args, **kwargs)

This allows templates to access the current eventContext and user from the L{omero.gateway.BlitzGateway}. E.g. <h1>{{ ome.user.getFullName }}</h1> If these are not required by the template, then they will not need to be loaded by the Blitz Gateway. The results are cached by Blitz Gateway, so repeated calls have no additional cost. We also process some values from settings and add these to the context.

omeroweb.webstart.urls module

omeroweb.webstart.views module

omeroweb.webstart.views.buildWebhost(request, web_host=None)
omeroweb.webstart.views.custom_index(request, *args, **kwargs)
omeroweb.webstart.views.getOmeroHost(request, host=None)
omeroweb.webstart.views.index(request, *args, **kwargs)
omeroweb.webstart.views.insight(request, *args, **kwargs)

Module contents