#162: ValueError: list.remove(x): x not in list
---------------------+------------------------------------------------------
 Reporter:  gerard_  |              Owner:  Kamaze          
     Type:  defect   |             Status:  new             
 Priority:  minor    |          Milestone:                  
Component:  Website  |            Version:                  
 Keywords:           |   Operating_system:  All/Non-Specific
Blockedby:           |           Blocking:                  
---------------------+------------------------------------------------------
 ==== How to Reproduce ====

 While doing a POST operation on `/ticket/153`, Trac issued an internal
 error.

 ''(please provide additional details here)''


 Request parameters:
 {{{
 {'__FORM_TOKEN': u'72e1558fe5ced5baf0e41c00',
  'action': u'leave',
  'author': u'anonymous',
  'cnum': u'2',
  'comment': u'Just a test to see if I can get a python error to happen
 again.',
  'id': u'153',
  'replyto': u'',
  'submit': u'Submit changes',
  'ts': u'2008-11-26 13:19:52+00:00'}
 }}}


 User Agent was: `Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.3)
 Gecko/2008092814 Iceweasel/3.0.3 (Debian-3.0.3-3)`

 ==== System Information ====

 || '''Trac''' || `0.11.1` ||
 || '''Python''' || `2.5.2 (r252:60911, Jul 31 2008, 17:28:52) ` [[br]]
 `[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]` ||
 || '''setuptools''' || `0.6c8` ||
 || '''SQLite''' || `3.4.2` ||
 || '''pysqlite''' || `2.3.2` ||
 || '''Genshi''' || `0.5` ||
 || '''Subversion''' || `1.4.6 (r28521)` ||
 || '''Pygments''' || `0.10` ||
 || '''jQuery:''' || `1.2.6` ||

 ==== Python Traceback ====
 {{{
 Traceback (most recent call last):
   File "/usr/lib/python2.5/site-
 packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 423, in
 _dispatch_request
     dispatcher.dispatch(req)
   File "/usr/lib/python2.5/site-
 packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 197, in dispatch
     resp = chosen_handler.process_request(req)
   File "/usr/lib/python2.5/site-
 packages/Trac-0.11.1-py2.5.egg/trac/ticket/web_ui.py", line 170, in
 process_request
     return self._process_ticket_request(req)
   File "/usr/lib/python2.5/site-
 packages/Trac-0.11.1-py2.5.egg/trac/ticket/web_ui.py", line 494, in
 _process_ticket_request
     self._do_save(req, ticket, action)
   File "/usr/lib/python2.5/site-
 packages/Trac-0.11.1-py2.5.egg/trac/ticket/web_ui.py", line 989, in
 _do_save
     cnum=internal_cnum):
   File "/usr/lib/python2.5/site-
 packages/Trac-0.11.1-py2.5.egg/trac/ticket/model.py", line 282, in
 save_changes
     listener.ticket_changed(self, comment, author, old_values)
   File "build/bdist.linux-i686/egg/mastertickets/api.py", line 105, in
 ticket_changed
     links.save(author, comment, tkt.time_changed, db)
   File "build/bdist.linux-i686/egg/mastertickets/model.py", line 65, in
 save
     update_field(new_value)
   File "build/bdist.linux-i686/egg/mastertickets/model.py", line 58, in
 <lambda>
     update_field = lambda lst: lst.remove(str(self.tkt.id))
 ValueError: list.remove(x): x not in list

 }}}

-- 
Ticket URL: <http://developer.wz2100.net/ticket/162>
Warzone 2100 Trac <http://wz2100.net/>
The Warzone 2100 Resurrection Project
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to