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

Opened 14 years ago

Closed 14 years ago

Param prototype not set

Reported by: wmoore Owned by: jamoore
Priority: minor Milestone: OMERO-Beta4.2
Component: General Version: n.a.
Keywords: n.a. Cc: jburel
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2010-04-30 (8)

Description (last modified by wmoore)

For scripts.Long and scripts.Int the prototype is not being set.

getParams() then param.prototype returns None.

This may explain why Insight does not display Long and Int parameters in the UI on the fly.

Test (committed below...)

wjm:OmeroPy will$ PYTHONPATH=$PYTHONPATH:.:test:build/lib ICE_CONFIG=/Users/will/Documents/workspace/Omero/etc/ice.config python test/integration/scripts.py TestScripts.testUploadOfficialScript
prototype None
F
======================================================================
FAIL: testUploadOfficialScript (__main__.TestScripts)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/integration/scripts.py", line 102, in testUploadOfficialScript
    self.assertNotEqual(param.prototype, None, "Parameter prototype is 'None'")
AssertionError: Parameter prototype is 'None'

----------------------------------------------------------------------
Ran 1 test in 8.757s

Change History (4)

comment:1 Changed 14 years ago by wmoore

(In [6920]) Failing param.prototype test. See #2340.

comment:2 Changed 14 years ago by wmoore

  • Cc jburel added
  • Description modified (diff)
  • Owner set to jmoore

comment:3 Changed 14 years ago by jmoore

  • Status changed from new to assigned

comment:4 Changed 14 years ago by jmoore

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

(In [6921]) fix #2340 - Fixing null in prototype

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

We're Hiring!