Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #4897 (closed)

Opened 8 years ago

Closed 8 years ago

Document __getattr__() behaviour

Reported by: wmoore Owned by: wmoore
Priority: minor Milestone: OMERO-Beta4.3
Component: General Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-04-21 (10)

Description (last modified by wmoore)

Write tests for BlitzObjectWrapper?.getattr() and document behaviour of accessing underlying ._obj methods.

E.g. printing out the results of method calls on imageWrapper:

    id 4210
    getId() 4210

    name weblitz_test_priv_image
    getName() weblitz_test_priv_image

    acquisitionDate 1300917102000
    getAcquisitionDate() <class 'omero.rtypes.RTimeI'>

    archived False
    getArchived() <class 'omero.rtypes.RBoolI'>

    format <class 'omero.model.FormatI'>
    getFormat() <class 'omero.model.FormatI'>

    instrument <class 'omero.model.InstrumentI'>
    getInstrument() <_InstrumentWrapper id=706>

    pixelsLoaded True
    getPrimaryPixels() <class 'omero.model.PixelsI'>

Change History (4)

comment:1 Changed 8 years ago by wmoore

  • Status changed from new to accepted

comment:2 Changed 8 years ago by wmoore

  • Description modified (diff)

comment:3 Changed 8 years ago by cxallan

  • Sprint changed from 2011-04-07 (9) to 2011-04-21 (10)

Moved from sprint 2011-04-07 (9)

comment:4 Changed 8 years ago by wmoore

  • Remaining Time changed from 1 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed

Decided in meeting today that methods on wrapped objects should only return wrapped objects (not omero.model objects as currently).

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.87096 sec.)

We're Hiring!