为欧麦的Python Plugin
omero-webtest的Python项目详细描述
omero.webtest
用于各种原型和示例的omero.web应用程序。 这是在5.0.6版本的OMERO中从主OMERO.web中删除的
要求
- OMERO.web 5.2.6或更新版本
从pypi安装
本节假设已经安装了omero.web。
使用pip:
安装应用程序$ pip install omero-webtest
将WebTest自定义应用程序添加到已安装的Web应用程序:
$ bin/omero config append omero.web.apps '"omero_webtest"'
可选:安装示例webclient插件:
$ bin/omero config append omero.web.ui.right_plugins '["ROIs", "webtest/webclient_plugins/right_plugin.rois.js.html", "image_roi_tab"]' $ bin/omero config append omero.web.ui.center_plugins '["Split View", "webtest/webclient_plugins/center_plugin.splitview.js.html", "split_view_panel"]'
现在像往常一样重新启动omero.web。
警告:
omero.webtest版本0.2.x需要omero.web5.2.6或更高版本。 这是由于django框架的兼容性以及0.2.0版中omero.webtest中所需的包重组,因此可以从python包索引PyPI分发应用程序。
示例
现有的示例可在以下URL上获得:
https://HOST/webtest/examples/IMAGE_ID/embed_big_image.html https://HOST/webtest/examples/IMAGE_ID/embed_viewer.html
注意:可以从公共映像获取映像ID。
新模板可以添加到templates/webtest/examples中。新模板可以从动态变量中获益:通过url传递的{{host{un name}和{image{u id}。
包含:呈现的模板,可以作为绝对uri保存在本地以供进一步测试。
许可证
webtest在AGPL下发布
版权
2016-2017,开放显微镜环境