AttributeError: 'TextConflict' object has no attribute 'replace'

Bug #401802 reported by Mitsuhiro Koga
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Fix Released
Critical
Unassigned

Bug Description

bzr: 1.17
bzr-explorer: rev 191

I opened the branch including the conflict files.
I've got error:

Traceback (most recent call last):
  File "/Users/username/.bazaar/plugins/explorer/lib/explorer.py", line 964, in callable_with_cleanup
    task_callable()
  File "/Users/username/.bazaar/plugins/explorer/lib/explorer.py", line 1010, in _open_location_task
    self.location_views.add_location(location, model)
  File "/Users/username/.bazaar/plugins/explorer/lib/location.py", line 379, in add_location
    view = model.view()
  File "/Users/username/.bazaar/plugins/explorer/lib/location.py", line 328, in view
    return view.ui()
  File "/Users/username/.bazaar/plugins/explorer/lib/html_report_view.py", line 51, in ui
    self.refresh_view()
  File "/Users/username/.bazaar/plugins/explorer/lib/html_report_view.py", line 55, in refresh_view
    self._view.setText(self.report_text())
  File "/Users/username/.bazaar/plugins/explorer/lib/view_workingtree.py", line 31, in report_text
    return report.full_report()
  File "/Users/username/.bazaar/plugins/explorer/lib/status_report.py", line 75, in full_report
    body = self.body_lines()
  File "/Users/username/.bazaar/plugins/explorer/lib/status_report.py", line 229, in body_lines
    lines.extend(self.section_lines(conflicts, "Conflicts"))
  File "/Users/username/.bazaar/plugins/explorer/lib/status_report.py", line 152, in section_lines
    return [title] + map(formatter, items)
  File "/Users/username/.bazaar/plugins/explorer/lib/status_report.py", line 109, in _conflicts_formatter
    return _edit_decorator(conflict.path, conflict)
  File "/Users/username/.bazaar/plugins/explorer/lib/status_report.py", line 51, in _edit_decorator
    return '<a href="%s">%s</a>' % (edit_link, escape(text))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/cgi.py", line 1048, in escape
    s = s.replace("&", "&amp;") # Must be done first!
AttributeError: 'TextConflict' object has no attribute 'replace'

Changed in bzr-explorer:
importance: Undecided → Critical
status: New → In Progress
Changed in bzr-explorer:
status: In Progress → Fix Released
Changed in bzr-explorer:
milestone: none → 0.5
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.