Task #5782 (new)
Opened 13 years ago
Last modified 8 years ago
Wrapper always throws an exception when object is not loaded — at Initial Version
Reported by: | atarkowska | Owned by: | wmoore |
---|---|---|---|
Priority: | minor | Milestone: | OMERO-Beta4.3 |
Component: | General | Version: | n.a. |
Keywords: | n.a. | Cc: | python-team@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | 2011-06-16 (14) |
Description
If not loaded object is wrapped by BlitzObjectWrapper? or subclass the separate query is trying to get that object. If the object does not exist (was deleted) ValidationException? is thrown. That could be investigated and handled in a different way.
if hasattr(obj, 'id') and obj.id is not None: self._oid = obj.id.val if not self._obj.loaded: self._obj = self._conn.getQueryService().get(self._obj.__class__.__name__, self._oid)
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.