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

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

Bug: Cannot add singular tag to PlateAcquisition

Reported by: cxallan Owned by: atarkowska
Priority: critical Milestone: OMERO-4.4
Component: Web Version: n.a.
Keywords: n.a. Cc: wmoore
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2012-02-28 (9)

Description


Change History (8)

comment:1 Changed 12 years ago by cxallan

Traceback (most recent call last):

  File "/Users/callan/code/ome.git/dist/lib/python/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/Users/callan/code/ome.git/dist/lib/python/omeroweb/webclient/views.py", line 172, in wrapped
    return f(request, *args, **kwargs)

  File "/Users/callan/code/ome.git/dist/lib/python/omeroweb/webclient/views.py", line 1653, in annotate_tags
    linked_tags = manager.createAnnotationsLinks('tag', tags, oids, well_index=index)

  File "/Users/callan/code/ome.git/dist/lib/python/omeroweb/webclient/controller/container.py", line 878, in createAnnotationsLinks
    fas = [fa_link.getAnnotation() for fa_link in links]

  File "/Users/callan/code/ome.git/dist/lib/python/omero/gateway/__init__.py", line 2430, in getAnnotationLinks
    raise AttributeError("Can only get Annotations on 'Project', 'Dataset', 'Image', 'Screen', 'Plate'")

AttributeError: Can only get Annotations on 'Project', 'Dataset', 'Image', 'Screen', 'Plate'


<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {u'tag': [u''], u'description': [u''], u'acquisition': [u'162'], u'tags': [u'37274']}>,
COOKIES:{'sessionid': '84e30af6bc7e236c53475132d58f78d6'},
META:{'CONTENT_LENGTH': '44',
 'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
 'HTTP_ACCEPT': '*/*',
 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
 'HTTP_CACHE_CONTROL': 'no-cache',
 'HTTP_CONNECTION': 'keep-alive',
 'HTTP_CONTENT_LENGTH': '44',
 'HTTP_CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
 'HTTP_COOKIE': 'sessionid=84e30af6bc7e236c53475132d58f78d6',
 'HTTP_HOST': 'localhost:8080',
 'HTTP_PRAGMA': 'no-cache',
 'HTTP_REFERER': 'http://localhost:8080/webclient/userdata/',
 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0.1) Gecko/20100101 Firefox/9.0.1',
 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
 'PATH_INFO': u'/webclient/annotate_tags/',
 'QUERY_STRING': '',
 'REQUEST_METHOD': 'POST',
 'SCRIPT_NAME': u'',
 'SERVER_NAME': '_',
 'SERVER_PORT': '8080',
 'SERVER_PROTOCOL': 'HTTP/1.1',
 'wsgi.errors': <flup.server.fcgi_base.TeeOutputStream object at 0x107054390>,
 'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x107046090>,
 'wsgi.multiprocess': True,
 'wsgi.multithread': False,
 'wsgi.run_once': False,
 'wsgi.url_scheme': 'http',
 'wsgi.version': (1, 0)}>

comment:2 Changed 12 years ago by cxallan

Furthermore, when attempting to add the tag, existing linked tags are not filtered from the available tag list.

comment:3 Changed 12 years ago by atarkowska

  • Cc wmoore added
  • Milestone changed from Unscheduled to OMERO-Beta4.4

Chris, could you please give a details which branch you were testing it with? I've just check it with the latest develop and it works.

comment:4 Changed 12 years ago by atarkowska

  • Remaining Time set to 0.5
  • Sprint set to 2012-02-14 (8)

comment:5 Changed 12 years ago by atarkowska

  • Sprint changed from 2012-02-14 (8) to 2012-02-28 (9)

comment:6 Changed 12 years ago by cxallan

6190_iframe Ola. Will and I opened this in the context of our testing and because he is using the getAnnotationLinks() method on a PlateAcquisition there. develop does still have the restriction to ["Project", "Dataset", "Image", "Screen", "Plate"] which also should probably be fixed.

comment:7 Changed 12 years ago by wmoore

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

Can now getAnnotationLinks() for all wrappers in KNOWN_WRAPPERS.
https://github.com/will-moore/openmicroscopy/commit/f072cb37e83f494438c15704c21b46b33e37f61f
Closing...

comment:8 Changed 12 years ago by Will Moore <will@…>

(In [f072cb37e83f494438c15704c21b46b33e37f61f/ome.git] on branch develop) Fix Annotation of PlateAcquisition?. Closes #7914

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

We're Hiring!