Modify ↓
Ticket #1518 (closed defect: fixed)
Opened 7 years ago
Last modified 7 years ago
changeset error when the svn:mime-type property has the charset
| Reported by: | zn@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.8.2 |
| Component: | version control/changeset view | Version: | 0.8.1 |
| Severity: | normal | Keywords: | |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
Trac detected an internal error: HtmlDiffEditor instance has no attribute 'log'
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/ModPythonHandler.py", line 195, in handler
core.dispatch_request(mpr.path_info, args, mpr, env)
File "/usr/lib/python2.3/site-packages/trac/core.py", line 441, in dispatch_request
module.run()
File "/usr/lib/python2.3/site-packages/trac/Module.py", line 46, in run
disp()
File "/usr/lib/python2.3/site-packages/trac/Changeset.py", line 243, in display
self.render_diffs()
File "/usr/lib/python2.3/site-packages/trac/Changeset.py", line 239, in render_diffs
0, 1, 0, 1, self.pool)
File "/usr/lib/python2.3/site-packages/trac/Changeset.py", line 112, in apply_textdelta
self.print_diff (*file_baton)
File "/usr/lib/python2.3/site-packages/trac/Changeset.py", line 70, in print_diff
self.log.debug("Charset %s selected" % charset)
AttributeError: HtmlDiffEditor instance has no attribute 'log'
Attachments
Change History
comment:1 Changed 7 years ago by kcwu
comment:2 Changed 7 years ago by Christopher Lenz <cmlenz@…>
- Milestone set to 0.8.2
- Owner changed from jonas to anonymous
- Status changed from new to assigned
comment:3 Changed 7 years ago by cmlenz
- Owner changed from anonymous to cmlenz
- Status changed from assigned to new
Oops, forgot to login.
comment:4 Changed 7 years ago by cmlenz
- Status changed from new to assigned
comment:5 Changed 7 years ago by cmlenz
- Resolution set to fixed
- Status changed from assigned to closed
Fixed in [1698].
Note: See
TracTickets for help on using
tickets.



it's fixed in [1109].
workaround for 0.8.x with following patch
--- Changeset.py.orig Thu May 19 03:19:06 2005 +++ Changeset.py Thu May 19 03:19:10 2005 @@ -67,7 +67,6 @@ ctpos = mime_type and mime_type.find('charset=') or -1 if ctpos >= 0: charset = mime_type[ctpos + 8:] - self.log.debug("Charset %s selected" % charset) else: charset = self.env.get_config('trac', 'default_charset', 'iso-8859-15')