Closed will-moore closed 4 years ago
Then omero_type
is doing something more. wrapper(1)
gives you an omero.RLong
. How would you convert that to whatever has an OMERO_CLASS
?
This was failing:
> if wrapper.OMERO_CLASS is not None:
E AttributeError: 'function' object has no attribute 'OMERO_CLASS'
because getObject("Annotation")
has an abstract AnnotationWrapper
class.
It should be fixed by my last commit above, which only uses the new behaviour when needed (when we need to distinguish between rint and rlong)
NB: I still had to handle id
on it's own since id
is not included in the _field_info
.
Fixes many 'show' tests, which use
getObjects('Image', attributes={'id':1})
We handleid
to wrap inrlong
. E.g: - https://py3-ci.openmicroscopy.org/jenkins/job/OMERO-test-integration/37/testReport/OmeroWeb.test.integration.test_show/TestShow/test_project_legacy_path/