Modify

Opened 7 years ago

Closed 7 years ago

#1339 closed defect (invalid)

removeTree does not exist.

Reported by: prasand Owned by: coderanger
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 7 years ago by prasand

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

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from coderanger. Next status will be 'closed'.
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.