Modify

Opened 8 years ago

Closed 8 years ago

#6987 closed defect (fixed)

Unable to enable the wysiwyg plugin in trac 0.10.4

Reported by: laicheng Owned by: Jun Omae
Priority: normal Component: TracWysiwygPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.10

Description

I installed python 2.4, trac 0.10.4 The components installed are: acct_mgr.admin.accountmanageradminpage = enabled acct_mgr.db.sessionstore = enabled acct_mgr.pwhash.htdigesthashmethod = enabled acct_mgr.web_ui.accountmodule = enabled acct_mgr.web_ui.loginmodule = enabled acct_mgr.web_ui.registrationmodule = disabled iniadmin.iniadmin.iniadminplugin = enabled trac.web.auth.loginmodule = disabled tractags.* = enabled ;tracwysiwyg.* = enabled webadmin.* = enabled

When set tracwysiwyg.* to enabled, trac website reports error as:

Traceback (most recent call last):

File "C:\Python24\Lib\site-packages\trac\web\main.py", line 406, in dispatch_request

dispatcher.dispatch(req)

File "C:\Python24\Lib\site-packages\trac\web\main.py", line 239, in dispatch

template, content_type = self._post_process_request(req,

File "C:\Python24\Lib\site-packages\trac\web\main.py", line 269, in _post_process_request

content_type)

File "build\bdist.win32\egg\tracwysiwyg\init.py", line 37, in post_process_request

NameError: global name 'add_link' is not defined

Attachments (0)

Change History (6)

comment:1 Changed 8 years ago by Jun Omae

Resolution: fixed
Status: newclosed

(In [7848]) fixed #6987 - undefined symbol add_link

comment:2 Changed 8 years ago by Jun Omae

Hi, thanks for your report. Try to upgrade r7848.

comment:3 Changed 8 years ago by laicheng

Resolution: fixed
Status: closedreopened

After installed r7848, still met error in startup phase. Is there some lib dependency unrevealed in the install chapter?

Traceback (most recent call last):
  File "C:\Python24\Lib\site-packages\trac\web\main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "C:\Python24\Lib\site-packages\trac\web\main.py", line 239, in dispatch
    template, content_type = self._post_process_request(req,
  File "C:\Python24\Lib\site-packages\trac\web\main.py", line 269, in _post_process_request
    content_type)
  File "build\bdist.win32\egg\tracwysiwyg\__init__.py", line 41, in post_process_request
  File "build\bdist.win32\egg\tracwysiwyg\__init__.py", line 50, in _expand_filename

AttributeError: 'Request' object has no attribute 'chrome'

My server runs in win server 2003, python 2.4, trac 0.10.4. Here's the list of plugins I've installed:

svnauthzadminplugin-0.1-py2.4.egg
tracaccountmanager-0.1.3dev_r5273-py2.4.egg
tracwysiwyg-0.2_r7848-py2.4.egg

comment:4 Changed 8 years ago by Jun Omae

(In [7850]) refs #6987 - fixed problem that add_link(req, 'tracwysiwyg.stylesheet', ..) doesn't work with trac 0.10.x and clearsilver.

comment:5 Changed 8 years ago by Jun Omae

I reworked for the problem. In this time, I tested with trac-0.10.4, python-2.3 and r7850. Thanks.

comment:6 Changed 8 years ago by laicheng

Resolution: fixed
Status: reopenedclosed

Many thanks[[BR]] It's working great for our project now

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jun Omae.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.