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)
Note: See
TracTickets for help on using
tickets.
Error is created by the BatchModifyPlugin (see ticket #1337).