Modify

Opened 3 years ago

Last modified 3 months ago

#8809 assigned defect

TypeError: 'NoneType' object is not iterable

Reported by: davidkazuhiro Owned by: takanorig
Priority: normal Component: TicketExtPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

How to Reproduce

While doing a GET operation on /admin/ticket/template_admin, Trac issued an internal error.

I installed the TicketExt plugin like so:

svn export http://trac-hacks.org/svn/ticketextplugin
cd ticketextplugin/0.11
python setup.py bdist_egg
and then I moved dist/TicketExtPlugin-0.3.2-py2.6.egg into the plugins directory of trac

Request parameters:

{'cat_id': u'ticket', 'panel_id': u'template_admin', 'path_info': None}

User Agent was: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110422 Ubuntu/10.10 (maverick) Firefox/3.6.17

System Information

Trac 0.11.7
Python 2.6.5 (r265:79063, Apr 16 2010, 14:15:55)
[GCC 4.4.3]
setuptools 0.6
SQLite 3.6.22
pysqlite 2.4.1
Genshi 0.5.1
mod_python 3.3.1
Pygments 1.2.2
Subversion 1.6.6 (r40053)
CustomFieldAdmin 0.2.5
jQuery: 1.3.2

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 450, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 206, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.6/dist-packages/trac/admin/web_ui.py", line 114, in process_request
    path_info)
  File "build/bdist.linux-x86_64/egg/ticketext/template_admin.py", line 67, in render_admin_panel
    self._process_read(req, page_param)
  File "build/bdist.linux-x86_64/egg/ticketext/template_admin.py", line 91, in _process_read
    for cf in customfields:
TypeError: 'NoneType' object is not iterable


Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by takanorig

  • Status changed from new to assigned

This problem was already fixed at rev:10092.

Please download this revision and check again.

http://trac-hacks.org/changeset/10092/ticketextplugin/0.12/?old_path=/&format=zip
-This revision is for Trac0.12 but it works at Trac0.11.

comment:2 Changed 3 years ago by anonymous

Ah that works. Any plans to patch this fix to the 0.11 branch?

comment:3 Changed 3 months ago by jun66j5

#11685 was closed as a duplicate.

Add Comment

Modify Ticket

Action
as assigned .
Author


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

 
Note: See TracTickets for help on using tickets.