Modify ↓
Opened 16 years ago
Closed 16 years ago
#5368 closed defect (wontfix)
screenshots-matrix-view.html: UndefinedError: "screenshots" not defined
| Reported by: | Owned by: | Radek Bartoň | |
|---|---|---|---|
| Priority: | normal | Component: | ScreenshotsPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description
Screenshot matrix results in this error on python 2.3 with trac 0.11
UndefinedError: "screenshots" not defined
Most recent call last:
* File "/usr/lib/python2.3/site-packages/TracScreenshots-0.7-py2.3.egg/tracscreenshots/templates/screenshots-matrix-view.html", line 1, in <Suite u"frame_aspect = float(screenshots['width']) / float(screenshots['height']) ...">
Code fragment:
1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "...">
2. <html xmlns="..." xmlns:xi="..." xmlns:py="...">
3. <div class="images">
4. <table>
5. <tbody>
6. <py:for each="row in screenshots.matrix">
Local variables:
Name Value
image {'description': u'', 'author': u'admin', 'tags': u'', 'height': 633L, ...
Attachments (0)
Change History (4)
comment:1 Changed 16 years ago by
| Status: | new → assigned |
|---|
comment:2 Changed 16 years ago by
The only error is the one reported... This is the complete debug log:
2009-06-12 09:33:43,834 Trac[main] DEBUG: Dispatching <Request "GET u'/screenshots'">
2009-06-12 09:33:43,889 Trac[svn_fs] DEBUG: Subversion bindings imported
2009-06-12 09:33:43,900 Trac[core] DEBUG: action: None
2009-06-12 09:33:43,900 Trac[core] DEBUG: actions: ['view']
2009-06-12 09:33:43,901 Trac[api] DEBUG: SELECT name, description FROM component
2009-06-12 09:33:43,902 Trac[api] DEBUG: SELECT name, description FROM version
2009-06-12 09:33:43,903 Trac[session] DEBUG: Retrieving session for ID 'admin'
2009-06-12 09:33:43,904 Trac[core] DEBUG: enabled_components: [u'none']
2009-06-12 09:33:43,904 Trac[core] DEBUG: enabled_versions: [u'none']
2009-06-12 09:33:43,904 Trac[core] DEBUG: filter_relation: or
2009-06-12 09:33:43,905 Trac[api] DEBUG: SELECT DISTINCT id, name, description, time, author, tags, file, width, height, priority FROM screenshot s LEFT JOIN (SELECT screenshot, version FROM screenshot_version) v ON s.id = v.screenshot LEFT JOIN (SELECT screenshot, component FROM screenshot_component) c ON s.id = c.screenshot WHERE (v.version IN (none) OR v.version IS NULL) OR (c.component IN (none) OR c.component IS NULL) ORDER BY id ASC
2009-06-12 09:33:43,906 Trac[core] DEBUG: screenshots: [{'description': u'', 'author': u'admin', 'tags': u'', 'height': 633L, 'priority': 0L, 'width': 633L, 'file': u'snapshot29.png', 'time': 1244742191L, 'id': 1L, 'name': u''}, {'description': u'', 'author': u'admin', 'tags': u'', 'height': 633L, 'priority': 0L, 'width': 633L, 'file': u'snapshot29.png', 'time': 1244742464L, 'id': 2L, 'name': u''}, {'description': u'', 'author': u'admin', 'tags': u'', 'height': 633L, 'priority': 0L, 'width': 633L, 'file': u'snapshot29.png', 'time': 1244743276L, 'id': 3L, 'name': u''}]
2009-06-12 09:33:43,906 Trac[chrome] DEBUG: Prepare chrome data for request
2009-06-12 09:33:43,921 Trac[matrix_view] DEBUG: index: -1
2009-06-12 09:33:43,921 Trac[matrix_view] DEBUG: page: -1
2009-06-12 09:33:43,921 Trac[matrix_view] DEBUG: index: 0
2009-06-12 09:33:43,921 Trac[matrix_view] DEBUG: page: 1
2009-06-12 09:33:44,397 Trac[main] ERROR: "screenshots" not defined
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/Trac-0.11-py2.3.egg/trac/web/main.py", line 423, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.3/site-packages/Trac-0.11-py2.3.egg/trac/web/main.py", line 219, in dispatch
data, content_type)
File "/usr/lib/python2.3/site-packages/Trac-0.11-py2.3.egg/trac/web/chrome.py", line 726, in render_template
stream.render(method, doctype=doctype, out=buffer)
File "build/bdist.linux-i686/egg/genshi/core.py", line 179, in render
File "build/bdist.linux-i686/egg/genshi/output.py", line 61, in encode
File "build/bdist.linux-i686/egg/genshi/output.py", line 311, in __call__
File "build/bdist.linux-i686/egg/genshi/output.py", line 753, in __call__
File "build/bdist.linux-i686/egg/genshi/output.py", line 592, in __call__
File "build/bdist.linux-i686/egg/genshi/output.py", line 698, in __call__
File "build/bdist.linux-i686/egg/genshi/output.py", line 532, in __call__
File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
File "/usr/lib/python2.3/site-packages/Trac-0.11-py2.3.egg/trac/web/chrome.py", line 779, in _strip_accesskeys
for kind, data, pos in stream:
File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
File "/usr/lib/python2.3/site-packages/Trac-0.11-py2.3.egg/trac/web/chrome.py", line 768, in _generate
for kind, data, pos in stream:
File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569, in _include
File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 298, in _match
File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 298, in _match
File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 245, in _match
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 543, in _exec
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 533, in _eval
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 496, in _eval
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 551, in _flatten
File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
File "build/bdist.linux-i686/egg/genshi/path.py", line 141, in _generate
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569, in _include
File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 234, in _strip
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 543, in _exec
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 533, in _eval
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 496, in _eval
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 551, in _flatten
File "build/bdist.linux-i686/egg/genshi/core.py", line 283, in _ensure
File "build/bdist.linux-i686/egg/genshi/path.py", line 141, in _generate
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 582, in _include
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 569, in _include
File "build/bdist.linux-i686/egg/genshi/template/markup.py", line 245, in _match
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 545, in _exec
File "build/bdist.linux-i686/egg/genshi/template/base.py", line 302, in _exec_suite
File "build/bdist.linux-i686/egg/genshi/template/eval.py", line 201, in execute
File "/usr/lib/python2.3/site-packages/TracScreenshots-0.7-py2.3.egg/tracscreenshots/templates/screenshots-matrix-view.html", line 1, in <Suite u"frame_aspect = float(screenshots['width']) / float(screenshots['height']) ...">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
File "build/bdist.linux-i686/egg/genshi/template/eval.py", line 279, in _die
UndefinedError: "screenshots" not defined
2009-06-12 09:33:44,650 Trac[main] DEBUG: 2522 unreachable objects found.
2009-06-12 09:33:44,682 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/css/trac.css'">
2009-06-12 09:33:44,687 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/screenshots/css/matrix-view.css'">
2009-06-12 09:33:44,704 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/js/jquery.js'">
2009-06-12 09:33:44,690 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/screenshots/css/screenshots.css'">
2009-06-12 09:33:44,756 Trac[main] DEBUG: 25 unreachable objects found.
2009-06-12 09:33:44,694 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/tracwysiwyg/wysiwyg.css'">
2009-06-12 09:33:44,759 Trac[main] DEBUG: 25 unreachable objects found.
2009-06-12 09:33:44,808 Trac[main] DEBUG: 25 unreachable objects found.
2009-06-12 09:33:44,819 Trac[main] DEBUG: 25 unreachable objects found.
2009-06-12 09:33:44,854 Trac[main] DEBUG: 25 unreachable objects found.
2009-06-12 09:33:44,992 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/js/trac.js'">
2009-06-12 09:33:45,019 Trac[main] DEBUG: 25 unreachable objects found.
2009-06-12 09:33:45,031 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/js/search.js'">
2009-06-12 09:33:45,071 Trac[main] DEBUG: 25 unreachable objects found.
2009-06-12 09:33:45,087 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/screenshots/js/screenshots.js'">
2009-06-12 09:33:45,134 Trac[main] DEBUG: 25 unreachable objects found.
2009-06-12 09:33:45,145 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/tracwysiwyg/wysiwyg.js'">
2009-06-12 09:33:45,188 Trac[main] DEBUG: 25 unreachable objects found.
2009-06-12 09:33:45,267 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/tracwysiwyg/wysiwyg-load.js'">
2009-06-12 09:33:45,308 Trac[main] DEBUG: 25 unreachable objects found.
2009-06-12 09:33:45,321 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/site/xtens.png'">
2009-06-12 09:33:45,338 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/topbar_gradient2.png'">
2009-06-12 09:33:45,327 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/site/biolab.jpg'">
2009-06-12 09:33:45,331 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/topbar_gradient.png'">
2009-06-12 09:33:45,365 Trac[main] DEBUG: 0 unreachable objects found.
2009-06-12 09:33:45,334 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/dots.gif'">
2009-06-12 09:33:45,410 Trac[main] DEBUG: 357 unreachable objects found.
2009-06-12 09:33:45,419 Trac[main] DEBUG: 0 unreachable objects found.
2009-06-12 09:33:45,325 Trac[main] DEBUG: Dispatching <Request "GET u'/chrome/common/trac_logo_mini.png'">
2009-06-12 09:33:45,447 Trac[main] DEBUG: 0 unreachable objects found.
2009-06-12 09:33:45,478 Trac[main] DEBUG: 25 unreachable objects found.
2009-06-12 09:33:45,512 Trac[main] DEBUG: 25 unreachable objects found.
comment:3 Changed 16 years ago by
This is related to http://genshi.edgewall.org/ticket/181, I'll try to workaround this sequentially...
Note: See
TracTickets for help on using
tickets.



Isn't there any error in DEBUG log? I don't want to install Python 2.3 just to figure this out.