<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 class="h5">
<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>