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 #6506 (closed)

Opened 13 years ago

Closed 13 years ago

BUG: unexpected return statement

Reported by: atarkowska Owned by: cneves
Priority: major Milestone: OMERO-Beta4.3.2
Component: Web Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-09-01 (4)

Description (last modified by atarkowska)

Could you please clarify what should be returned if plate is None?

@jsonp
def plateGrid_json (request, pid, field=0, server_id=None, _conn=None, **kwargs):
   """
   """
   plate = _conn.getObject('plate', long(pid))
   try:
       field = long(field or 0)
   except ValueError:
       field = 0
   if plate is None:
       return plate
       return HttpResponseServerError('""', mimetype='application/javascript')}}}

Change History (3)

comment:1 Changed 13 years ago by atarkowska

  • Component changed from General to Web
  • Description modified (diff)
  • Priority changed from minor to major

comment:2 Changed 13 years ago by jburel

  • Sprint changed from 2011-08-18 (3) to 2011-09-01 (4)

Moved from sprint 2011-08-18 (3)

comment:3 Changed 13 years ago by Carlos Neves <carlos@…>

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

(In [e9e582186428a98e9300ff8be774de738abe7493/ome.git] on branch develop) webgateway plateGrid_json returns httpresponseerror if plate can't be retrieved (close #6506)

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.67673 sec.)

We're Hiring!