<div dir="ltr">Hi Sebastien<div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/23 Sebastien Besson <span dir="ltr">&lt;<a href="mailto:s.besson@dundee.ac.uk" target="_blank">s.besson@dundee.ac.uk</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Hi Luca,
<div><br>
</div>
<div>sorry for the delay. To implement a simple dependency check, your code changes make sense and I don&#39;t see anything wrong with your implementation.</div>
<div>Obviously, modifying the version target creates a very tight coupling between the omero version and the biobank version, but this may be exactly part of the design you want to achieve.</div></div></blockquote><div><br>

</div><div>A tight coupling is exactly what we need, we have several servers running different models (and one still running ice 3.3) so a strong check is the only thing that we can use to prevent unexpected runtime errors. I already added this new check in OMERO.biobank (develop branch on Github) and I created a tool that automatically updates the server configuration in order to add the biobank TAG (I also updated the server installation guide on Github&#39;s WIKI).</div>

<div> </div><div>Cheers</div><div><br></div><div>Luca</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">
<div><br>
</div>
<div>I am away for two weeks but I will definitely try out omero.biobank once back from vacation. I will let you know if I have some extra comment by then.</div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><div><div>Note also that providing ways to define dependencies between server and components is something we want to explore in the upcoming months.</div>
</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Sebastien</div>
<div><br>
<div><div><div class="h5">
<div>On 18 Jul 2013, at 16:23, Luca Lianas wrote:</div>
<br>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Thanks Ola!
<div>I used the omero_version variable and the configService to perform a check between client and server versions (as you can see in the attached python example) and it worked fine.</div>
<div>I also added a property in the components/antlib/resources/global.xml file like this</div>
<div><br>
</div>
<div>
<div><b><span style="white-space:pre-wrap"></span>&lt;!--</b></div>
<div><b><span style="white-space:pre-wrap"></span>   OMERO.biobank properties</b></div>
<div><b><span style="white-space:pre-wrap"></span>--&gt;</b></div>
<div><b><span style="white-space:pre-wrap"></span>&lt;property name=&quot;biobank.version&quot; value=&quot;0.6-beta&quot;/&gt;</b></div>
</div>
<div><br>
</div>
<div>and updated the build.xml file like this</div>
<div><br>
</div>
<div>
<div><b>    &lt;target name=&quot;version&quot;&gt;</b></div>
<div><b><br>
</b></div>
<div><b>        &lt;gitdescribe select=&quot;\2\3\5\6&quot;&gt;</b></div>
<div><b>        &lt;/gitdescribe&gt;</b></div>
<div><b>        &lt;echo&gt;${version.describe}-ice${versions.ice_lib}-biobank${biobank.version}&lt;/echo&gt;</b></div>
<div><b>    &lt;/target&gt;</b></div>
</div>
<div><br>
</div>
<div>in order to apply the biobank tag we needed.<br>
</div>
<div><br>
</div>
<div>The results is</div>
<div><br>
</div>
<div>
<div><b>luca@tensa-zangetsu:/opt/omero_4.4.8$ ./build.py version</b></div>
<div><b>Buildfile: /opt/omero_4.4.8/build.xml</b></div>
<div><b><br>
</b></div>
<div><b>version:</b></div>
<div><b>4.4.8-dirty-ice34-biobank0.6-beta</b></div>
<div><b><br>
</b></div>
<div><b>BUILD SUCCESSFUL</b></div>
<div><b>Total time: 0 seconds</b></div>
</div>
<div><br>
</div>
<div>Are these the right files that I need to update or is it better to make these changes somewhere else?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Luca</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/7/18 Aleksandra Tarkowska <span dir="ltr">&lt;<a href="mailto:A.Tarkowska@dundee.ac.uk" target="_blank">A.Tarkowska@dundee.ac.uk</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hi Luca
<div><br>
</div>
<div>There is a python function in <a href="https://github.com/openmicroscopy/openmicroscopy/blob/dev_4_4/components/tools/OmeroWeb/omeroweb/webadmin/webadmin_utils.py#L12" target="_blank">
https://github.com/openmicroscopy/openmicroscopy/blob/dev_4_4/components/tools/OmeroWeb/omeroweb/webadmin/webadmin_utils.py#L12</a></div>
<div><br>
</div>
<div>you just need to call it during the login process</div>
<div><br>
</div>
<div>from omeroweb.webadmin.webadmin_utils import upgradeCheck</div>
<div>upgradeCheck()</div>
<div><br>
<div>
<div style="line-height:normal;text-indent:0px;letter-spacing:normal;font-variant:normal;text-transform:none;font-style:normal;font-size:medium;white-space:normal;font-family:Helvetica;font-weight:normal;word-spacing:0px">


<br>
Thanks</div>
<div style="line-height:normal;text-indent:0px;letter-spacing:normal;font-variant:normal;text-transform:none;font-style:normal;font-size:medium;white-space:normal;font-family:Helvetica;font-weight:normal;word-spacing:0px">


Ola</div>
<div style="line-height:normal;text-indent:0px;letter-spacing:normal;font-variant:normal;text-transform:none;font-style:normal;font-size:medium;white-space:normal;font-family:Helvetica;font-weight:normal;word-spacing:0px">


<br>
</div>
<div style="line-height:normal;text-indent:0px;letter-spacing:normal;font-variant:normal;text-transform:none;font-style:normal;font-size:medium;white-space:normal;font-family:Helvetica;font-weight:normal;word-spacing:0px">


<br>
</div>
<div style="line-height:normal;text-indent:0px;letter-spacing:normal;font-variant:normal;text-transform:none;font-style:normal;font-size:medium;white-space:normal;font-family:Helvetica;font-weight:normal;word-spacing:0px">


<span style="font-family:Arial;font-size:12px;font-weight:bold">Aleksandra Tarkowska, M.Sc. Eng.</span></div>
<div style="line-height:normal;text-indent:0px;letter-spacing:normal;font-variant:normal;text-transform:none;font-style:normal;font-size:medium;white-space:normal;font-family:Helvetica;font-weight:normal;word-spacing:0px">


<div><span style="font-size:12px"><font style="font-family:Tahoma">
<div><span style="font-family:Arial">OME Software Developer</span></div>
<span style="font-family:Calibri"><br style="font-family:Arial">
</span></font><span lang="en-GB" style="font-family:Tahoma">
<div style="margin:0pt;font-family:Arial"><font color="black">Wellcome Trust Centre for Gene Regulation &amp; Expression</font></div>
<div style="margin:0pt;font-family:Arial"><font color="black">College of Life Sciences</font></div>
<div style="margin:0pt;font-family:Arial"><font color="black">MSI/WTB/JBC Complex</font></div>
<div style="margin:0pt;font-family:Arial"><font color="black">University of Dundee</font></div>
<div style="margin:0pt;font-family:Arial"><font color="black">Dow Street</font></div>
<div style="margin:0pt"><font face="Calibri,sans-serif" style="font-family:Arial"><font color="black">Dundee  DD1 5EH<br>
United Kingdom</font></font></div>
</span></span></div>
</div>
</div>
<br>
<div>
<div>On 18 Jul 2013, at 13:15, Luca Lianas &lt;<a href="mailto:luca.lianas@crs4.it" target="_blank">luca.lianas@crs4.it</a>&gt;</div>
<div> wrote:</div>
<br>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">Hi,
<div>is there a way to perform a version check between the Python API and an OMERO server?</div>
<div>We need some kind of automatic mechanism that will throw an exception if the version of the server and the version of the compiled API are not the same (i.e. using an OMERO 4.4.8 Python API against a 4.3 OMERO server).</div>


<div>Our idea is to add a &quot;biobank&quot; tag to perform a check which can guarantee that the API we are using was compiled against the same ICE version and the same OMERO.biobank models used to compile the server.</div>


<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Luca<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Luca Lianas<br>
<div><span>Data Fusion - Distributed Computing</span><br>
CRS4 - Centro di Ricerche, Sviluppo e Studi Superiori della Sardegna<br>
POLARIS, Edificio 1, 09010 PULA (CA - Italy)<br>
<br>
<br>
Phone: 070/9250266<br>
Email: <a href="mailto:luca.lianas@crs4.it" target="_blank">luca.lianas@crs4.it</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
ome-devel mailing list<br>
<a href="mailto:ome-devel@lists.openmicroscopy.org.uk" target="_blank">ome-devel@lists.openmicroscopy.org.uk</a><br>
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel" target="_blank">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<span style="font-size:10pt">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Luca Lianas<br>
<div><span>Data Fusion - Distributed Computing</span><br>
CRS4 - Centro di Ricerche, Sviluppo e Studi Superiori della Sardegna<br>
POLARIS, Edificio 1, 09010 PULA (CA - Italy)<br>
<br>
<br>
Phone: 070/9250266<br>
Email: <a href="mailto:luca.lianas@crs4.it" target="_blank">luca.lianas@crs4.it</a><br>
</div>
</div>
</div>
</div></div><span>&lt;check_ome_version.py&gt;</span>_______________________________________________<div class="im"><br>
ome-devel mailing list<br>
<a href="mailto:ome-devel@lists.openmicroscopy.org.uk" target="_blank">ome-devel@lists.openmicroscopy.org.uk</a><br>
<a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel" target="_blank">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel</a><br>
</div></blockquote>
</div>
<br>
<div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">
<div style="word-wrap:break-word"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px">
<div style="word-wrap:break-word">
<div>Dr Sébastien Besson</div>
<div>Open Microscopy Environment / Harvard Medical School</div>
<div>Wellcome Trust Centre for Gene Regulation and Expression,</div>
<div>College of Life Sciences, University of Dundee, Dow Street,</div>
<div>Dundee DD1 5EH Scotland UK   Tel: (01382) 386364</div>
</div>
</span></div>
</span></span></div>
<br>
</div><div class="im">
<br>
<span style="font-size:10pt">The University of Dundee is a registered Scottish Charity, No: SC015096</span>
</div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Luca Lianas<br><div>
<span>Data Fusion - Distributed Computing</span><br>
CRS4 - Centro di Ricerche, Sviluppo e Studi Superiori della Sardegna<br>
POLARIS, Edificio 1, 09010 PULA (CA - Italy)<br>
<br>
<br>
Phone: 070/9250266<br>
Email: <a href="mailto:luca.lianas@crs4.it" target="_blank">luca.lianas@crs4.it</a><br>
</div>
</div>
</div></div>