Will Moore | Ola Tarkowska
# E.g. Run rdef tests on Chrome:
$ ./build.py -f components/tests/ui/build.xml web-chrome -DTEST=rdef_test.txt
# urls.py
url( r'^dataset/(?P<datasetId>[0-9]+)/$', views.dataset ),
# views.py
@login_required()
def dataset(request, datasetId, conn=None, **kwargs):
ds = conn.getObject("Dataset", datasetId)
return render(request, "dataset.html", {"dataset": ds})
<!-- dataset.html -->
<html><body>
<h1>{{ dataset.getName }}</h1>
{% for i in dataset.listChildren %}
<img src="{% url 'webgateway.views.render_thumbnail' i.id %}" />
{{ i.getName }}
{% endfor %}
</body></html>
See
Creating an app documentation
$ bin/omero config append omero.web.ui.right_plugins
'["ROIs", "webtest/webclient_plugins/right_plugin.rois.js.html", "image_roi_tab"]'