Modify

Opened 18 years ago

Closed 18 years ago

#1339 closed defect (invalid)

removeTree does not exist.

Reported by: Prasand J. Owned by: Noah Kantrowitz
Priority: normal Component: NavHiderPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

The code does not fail to hide the items, but on every page load the same error is generated four times. With four items being hidden on my mainnav, I imagine it's an error specific to that navigation bar. The error output is:

2007-03-15 02:13:39,649 Trac[main] ERROR: 'NoneType' object has no attribute 'removeTree'
Traceback (most recent call last):
  File "/home/username/packages/lib/python2.3/site-packages/trac/web/main.py", line 252, in dispatch
    self._post_process_request(req)
  File "/home/username/packages/lib/python2.3/site-packages/trac/web/main.py", line 269, in _post_process_request
    content_type)
  File "/home/username/packages/lib/python2.3/site-packages/TracNavHider-1.0-py2.3.egg/navhider/filter.py", line 28, in post_process_request
    self._remove_items(req, 'mainnav')
  File "/home/username/packages/lib/python2.3/site-packages/TracNavHider-1.0-py2.3.egg/navhider/filter.py", line 40, in _remove_items
    req.hdf.removeTree('chrome.nav.%s.%s'%(name,item))
AttributeError: 'NoneType' object has no attribute 'removeTree'

Attachments (0)

Change History (1)

comment:1 Changed 18 years ago by Prasand J.

Resolution: invalid
Status: newclosed

Error is created by the BatchModifyPlugin (see ticket #1337).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.