Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
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 #9106 (new)

Opened 12 years ago

Last modified 8 years ago

Blitz isPrivate isShared is Private

Reported by: wmoore Owned by: wmoore
Priority: major Milestone: Unscheduled
Component: OmeroPy Version: n.a.
Keywords: n.a. Cc: atarkowska, cxallan, cneves
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

We need to clean these up, since we now have canEdit() canDelete() canAnnotate() canLink() methods.

E.g. isPrivate() delegates to a number of other methods that load details etc, so we have a lot of work happening under the hood for these calls. See
http://trac.openmicroscopy.org.uk/ome/ticket/8858#comment:1

    def isPrivate(self):
        if not self.isPublic() and not self.isShared():
            g = self.getDetails().getGroup()
            g = g and g.details or self._obj.details
            return g.permissions.isUserRead()
        return False

Change History (4)

comment:1 Changed 12 years ago by jmoore

Referencing ticket #9092 has changed sprint.

comment:2 Changed 8 years ago by jamoore

Referencing ticket #9092 has changed sprint.

comment:3 Changed 8 years ago by jamoore

Referencing ticket #9092 has changed sprint.

comment:4 Changed 8 years ago by jamoore

  • Milestone changed from 5.x to Unscheduled
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.66874 sec.)

We're Hiring!