Task #6694 (closed)
Opened 8 years ago
Closed 8 years ago
BUG: Can't override BlitzObjectWrapper getter for particular attribute
| Reported by: | atarkowska | Owned by: | atarkowska |
|---|---|---|---|
| Priority: | blocker | Milestone: | OMERO-Beta4.3.2 |
| Component: | OmeroPy | Version: | n.a. |
| Keywords: | n.a. | Cc: | python-team@… |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | 2011-09-15 (5) |
Description
I couldn't override getMyAttribute in custom wrapper class
class MyWrapper (omero.gateway.BlitzObjectWrapper):
...
def getMyAttr (self):
...
return myattr
because:
> /Users/ola/Dev/omero/components/tools/OmeroWeb/omeroweb/webclient/views.py(1581)manage_action_containers()
-> print obj.name
(Pdb) s
--Call--
> /Users/ola/Dev/omero/dist/lib/python/omero/gateway/__init__.py(931)__getattr__()
-> def __getattr__ (self, attr):
(Pdb)
> /Users/ola/Dev/omero/dist/lib/python/omero/gateway/__init__.py(949)__getattr__()
-> if attr != 'get' and attr.startswith('get') and hasattr(self, '_attrs'):
(Pdb)
> /Users/ola/Dev/omero/dist/lib/python/omero/gateway/__init__.py(966)__getattr__()
-> if attr != 'get' and attr.startswith('get'):
(Pdb)
> /Users/ola/Dev/omero/dist/lib/python/omero/gateway/__init__.py(980)__getattr__()
-> if not hasattr(self._obj, attr) and hasattr(self._obj, '_'+attr):
(Pdb)
--Call--
> /Users/ola/Dev/omero/dist/lib/python/omero_model_PlateAcquisitionI.py(441)__getattr__()
-> def __getattr__(self, name):
(Pdb)
Change History (2)
comment:1 Changed 8 years ago by atarkowska
- Milestone changed from Unscheduled to OMERO-Beta4.3.2
- Owner changed from wmoore to atarkowska
- Sprint set to 2011-09-15 (5)
comment:2 Changed 8 years ago by Aleksandra Tarkowska <atarkowska@…>
- Remaining Time set to 0
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
(In [7d1cc9df49b06d70cf074755d8ce663f4b7a48b9/ome.git] on branch develop) this resolve overriding issue, close #6694