Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6934 closed defect (fixed)

AttributeError: 'TicketModule' object has no attribute 'must_preserve_newlines'

Reported by: rolf.anderegg@… Owned by: jun66j5
Priority: normal Component: TracWysiwygPlugin
Severity: major Keywords:
Cc: Trac Release: 0.11

Description

How to Reproduce

While doing a GET operation on /newticket, Trac issued an internal error.

I had just newly installed the TracWysiwygPlugin and wanted to try it out in a test project. Wysiwyg editor worked fine within Wiki, but when I wanted to try it out with creating/editing a Ticket this error occured. I noticed [7772] had recently addressed the concerned section; I am not at all experienced with these modules, but there seems to be a connection.

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)

System Information

Trac 0.11.1
Python 2.5.2 (r252:60911, Jan 24 2010, 15:24:24)
[GCC 4.3.2]
setuptools 0.6c11
SQLite 3.5.9
pysqlite 2.4.1
Genshi 0.5.1
mod_python 3.3.1
Subversion 1.5.1 (r32289)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 219, in dispatch
    data, content_type)
  File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 690, in render_template
    stream |= self._filter_stream(req, method, filename, stream, data)
  File "/var/lib/python-support/python2.5/genshi/core.py", line 128, in __or__
    return Stream(_ensure(function(self)), serializer=self.serializer)
  File "/usr/lib/python2.5/site-packages/trac/web/chrome.py", line 777, in inner
    data)
  File "build/bdist.linux-i686/egg/tracwysiwyg/__init__.py", line 55, in filter_stream
AttributeError: 'TicketModule' object has no attribute 'must_preserve_newlines'

Attachments (0)

Change History (4)

comment:1 Changed 5 years ago by rolf.anderegg@…

Isn't the concerned TicketModules attribute supposed to be preserve_newlines instead of must_preserve_newlines?

comment:2 Changed 5 years ago by jun66j5

  • Resolution set to fixed
  • Status changed from new to closed

(In [7817]) fixed #6934 - works in trac-0.11.1. TicketModule.must_preserve_newlines is avialable in trac-0.11.2 later.

comment:3 follow-up: Changed 5 years ago by jun66j5

Thanks for your report. Try to upgrade to trac 0.11.2 later or tracwysiwyg-0.2_r7817.

comment:4 in reply to: ↑ 3 Changed 5 years ago by anonymous

Replying to jun66j5:

Thanks for your report. Try to upgrade to trac 0.11.2 later or tracwysiwyg-0.2_r7817.

Brilliant, it now works fine with r7817 and Trac 0.11.1. Thanks a lot, very cool plugin!

Add Comment

Modify Ticket

Action
as closed The owner will remain jun66j5.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.