#544: Inline expansion for quick ticket overlay
--------------------------+-----------------------
Reporter: jdreimann | Owner: matevzb
Type: enhancement | Status: accepted
Priority: major | Milestone: Release 6
Component: ui design | Version:
Resolution: | Keywords:
--------------------------+-----------------------
Comment (by rjollos):
There are tracebacks such as the one shown below under various
circumstances. One easy way to reproduce is to navigate to a non-existing
ticket. It looks like we just need to check for the existence of the `qct`
variable in the "visible-phone" Quick-ticket-create code, as is already
done in the "hidden-phone" Quick-ticket-create code.
{{{
Traceback (most recent call last):
File "/home/user/Workspace/bh201/bloodhound/trac/trac/web/api.py", line
514, in send_error
data, 'text/html')
File "/home/user/Workspace/bh201/bloodhound/trac/trac/web/chrome.py",
line 1019, in render_template
encoding='utf-8')
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/core.py", line 184, in render
return encode(generator, method=method, encoding=encoding, out=out)
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/output.py", line 58, in encode
for chunk in iterator:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/output.py", line 350, in __call__
for kind, data, pos in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/output.py", line 829, in __call__
for kind, data, pos in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/output.py", line 669, in __call__
for kind, data, pos in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/output.py", line 774, in __call__
for kind, data, pos in chain(stream, [(None, None, None)]):
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/output.py", line 594, in __call__
for ev in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/core.py", line 289, in _ensure
for event in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/core.py", line 289, in _ensure
for event in stream:
File "/home/user/Workspace/bh201/bloodhound/trac/trac/web/chrome.py",
line 1156, in _strip_accesskeys
for kind, data, pos in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/core.py", line 289, in _ensure
for event in stream:
File "/home/user/Workspace/bh201/bloodhound/trac/trac/web/chrome.py",
line 1145, in _generate
for kind, data, pos in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/core.py", line 289, in _ensure
for event in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/core.py", line 289, in _ensure
for event in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/filters/transform.py", line 706, in _unmark
for mark, event in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/filters/transform.py", line 974, in __call__
for mark, (kind, data, pos) in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/filters/transform.py", line 734, in __call__
for mark, event in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/filters/transform.py", line 799, in __call__
for mark, event in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/filters/transform.py", line 974, in __call__
for mark, (kind, data, pos) in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/filters/transform.py", line 734, in __call__
for mark, event in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/filters/transform.py", line 799, in __call__
for mark, event in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/filters/transform.py", line 1195, in __call__
for mark, (kind, data, pos) in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/filters/transform.py", line 734, in __call__
for mark, event in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/filters/transform.py", line 799, in __call__
for mark, event in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/filters/transform.py", line 746, in __call__
mark, subevent = next()
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/filters/transform.py", line 702, in _mark
for event in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/template/base.py", line 618, in _include
for event in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/template/markup.py", line 378, in _match
ctxt, start=idx + 1, **vars):
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/template/markup.py", line 378, in _match
ctxt, start=idx + 1, **vars):
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/template/markup.py", line 326, in _match
for event in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/template/base.py", line 558, in _flatten
for kind, data, pos in stream:
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/template/directives.py", line 360, in __call__
iterable = _eval_expr(self.expr, ctxt, vars)
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/template/base.py", line 289, in _eval_expr
retval = expr.evaluate(ctxt)
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/template/eval.py", line 177, in evaluate
return eval(self.code, _globals, {'__data__': data})
File
"/home/user/Workspace/bh201/bloodhound/bloodhound_theme/bhtheme/templates/bloodhound_theme.html",
line 315, in <Expression u'iter(qct.fields)'>
<py:for each="field in qct.fields">
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/template/eval.py", line 317, in lookup_attr
val = getattr(obj, key)
File "/home/user/Workspace/bh201/bh/local/lib/python2.7/site-
packages/genshi/template/eval.py", line 278, in _die
raise UndefinedError(self._name, self._owner)
UndefinedError: "qct" not defined
}}}
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/544#comment:9>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound issue tracker