Task #5782 (new)
Opened 13 years ago
Last modified 8 years ago
REL: Wrapper always throws an exception when object is not loaded — at Version 1
Reported by: | atarkowska | Owned by: | wmoore |
---|---|---|---|
Priority: | critical | Milestone: | OMERO-Beta4.3.1 |
Component: | OmeroPy | Version: | n.a. |
Keywords: | n.a. | Cc: | python-team@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description (last modified by atarkowska)
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)
Change History (1)
comment:1 Changed 13 years ago by atarkowska
- Cc python-team@… added
- Component changed from General to OmeroPy
- Description modified (diff)
- Milestone changed from OMERO-Beta4.3 to OMERO-Beta4.3.1
- Priority changed from minor to critical
- Sprint 2011-06-16 (14) deleted
- Summary changed from Wrapper always throws an exception when object is not loaded to REL: Wrapper always throws an exception when object is not loaded
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.