Task #4825 (closed)
Opened 13 years ago
Closed 13 years ago
BUG: sortByAttr 'details.creationEvent.time'
Reported by: | wmoore | Owned by: | atarkowska |
---|---|---|---|
Priority: | minor | Milestone: | OMERO-Beta4.3 |
Component: | Web | Version: | n.a. |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | n.a. |
Sprint: | n.a. |
Description
Ola: I looked at this for a bit and think that the problem is that the getAttribute() method for 'details.creationEvent.time' fails because the data is not loaded.
Calling comment.getDate() loads the creation event but getting attribute directly doesn't seem to?
Not sure if something has changed to cause this problem or what's the best strategy to fix.
One possibility is:
self.text_annotations.sort(key=lambda x: x.getDate())
Change History (2)
comment:1 Changed 13 years ago by atarkowska
comment:2 Changed 13 years ago by wmoore
- Resolution set to fixed
- Status changed from new to closed
This was fixed by loading creationEvent for listAnnotations(). See #4844.
according to the discussion first we need to look at #4844