callable url in LinkAction TemplateSyntaxError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Low
|
John Davidge |
Bug Description
According to the doc-string for horizon.
If ``url`` is callable it will call the function.
Here's the snippit that does the call:
if callable(self.url):
return self.url(datum, **self.kwargs)
However, self.kwargs is not set anywhere (should probably be set in __init__).
This will result in an AttributeError or TemplateSyntaxE
In searching through the code-base, I don't see a single use of a callable url, so perhaps this is dead code? The dead-code-
.. attribute:: url
A string or a callable which resolves to a url to be used as the link
target. You must either define the ``url`` attribute or override
the ``get_link_url`` method on the class.
tags: | added: horizon-core |
Changed in horizon: | |
importance: | Undecided → Low |
status: | New → Confirmed |
tags: | added: low-hanging-fruit |
Changed in horizon: | |
assignee: | nobody → John Davidge (john-davidge) |
Changed in horizon: | |
milestone: | none → juno-3 |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | juno-3 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/115286
Review: https:/