Task #6730 (closed)
Opened 13 years ago
Closed 13 years ago
BUG: Can't load list of file annotations
Reported by: | atarkowska | Owned by: | atarkowska |
---|---|---|---|
Priority: | minor | Milestone: | OMERO-Beta4.3.2 |
Component: | General | Version: | n.a. |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | 2011-09-15 (5) |
Description (last modified by atarkowska)
Can't load list of file annotations when original file does not exist
Caught an exception while rendering: 'NoneType' object has no attribute 'name' Original Traceback (most recent call last): File "/Users/ola/Dev/omero/dist/lib/python/django/template/debug.py", line 71, in render_node result = node.render(context) File "/Users/ola/Dev/omero/dist/lib/python/django/template/defaulttags.py", line 155, in render nodelist.append(node.render(context)) File "/Users/ola/Dev/omero/dist/lib/python/django/template/debug.py", line 87, in render output = force_unicode(self.filter_expression.resolve(context)) File "/Users/ola/Dev/omero/dist/lib/python/django/utils/encoding.py", line 71, in force_unicode s = unicode(s) File "/Users/ola/Dev/omero/dist/lib/python/django/forms/forms.py", line 356, in __unicode__ return self.as_widget() File "/Users/ola/Dev/omero/dist/lib/python/django/forms/forms.py", line 391, in as_widget return widget.render(name, data, attrs=attrs) File "/Users/ola/Dev/omero/dist/lib/python/django/forms/widgets.py", line 464, in render options = self.render_options(choices, value) File "/Users/ola/Dev/omero/dist/lib/python/django/forms/widgets.py", line 420, in render_options for option_value, option_label in chain(self.choices, choices): File "/Users/ola/Dev/omero/components/tools/OmeroWeb/omeroweb/../omeroweb/webclient/custom_forms.py", line 138, in __iter__ textValue = (len(obj.getFileName()) < 45) and (obj.getFileName()) or (obj.getFileName()[:42]+"...") File "/Users/ola/Dev/omero/dist/lib/python/omero/gateway/__init__.py", line 3382, in getFileName return self._obj.file.name.val AttributeError: 'NoneType' object has no attribute 'name'
Change History (3)
comment:1 Changed 13 years ago by atarkowska
- Status changed from new to accepted
comment:2 Changed 13 years ago by atarkowska
- Description modified (diff)
- Summary changed from BUG: Cant load list of file annotations when annotations to BUG: Can't load list of file annotations
comment:3 Changed 13 years ago by Aleksandra Tarkowska <atarkowska@…>
- Remaining Time changed from 0.2 to 0
- Resolution set to fixed
- Status changed from accepted to closed
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
(In [6bae43f2b72ba92f54adbde71f0b6cd1839210c6/ome.git] on branch develop) this fixes original file error, close #6730