Modify

Opened 20 months ago

Last modified 20 months ago

#11033 assigned defect

[patch] AttributeError: 'int' object has no attribute 'rsplit'

Reported by: mxhess Owned by: ChrisNelson
Priority: high Component: ValuePropagationPlugin
Severity: critical Keywords:
Cc: Trac Release: 1.0

Description

Receiving error when tickets are created or updated.

Python Traceback

Most recent call last:
File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/web/main.py", line 497, in _dispatch_request
File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/web/main.py", line 214, in dispatch
File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/ticket/web_ui.py", line 180, in process_request
File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/ticket/web_ui.py", line 465, in _process_newticket_request
File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/ticket/web_ui.py", line 1289, in _do_create
File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/ticket/model.py", line 256, in insert
File "/usr/lib/python2.6/site-packages/ValuePropagation-0.2-py2.6.egg/valuepropagation/valuepropagation.py", line 361, in ticket_created
File "/usr/lib/python2.6/site-packages/ValuePropagation-0.2-py2.6.egg/valuepropagation/valuepropagation.py", line 373, in ticket_changed
File "/usr/lib/python2.6/site-packages/ValuePropagation-0.2-py2.6.egg/valuepropagation/valuepropagation.py", line 262, in _handle_link
File "/usr/lib/python2.6/site-packages/ValuePropagation-0.2-py2.6.egg/valuepropagation/valuepropagation.py", line 352, in _propagate
File "/usr/lib/python2.6/site-packages/ValuePropagation-0.2-py2.6.egg/valuepropagation/valuepropagation.py", line 345, in _update_ticket
File "/usr/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/ticket/model.py", line 366, in save_changes

Attachments (0)

Change History (2)

comment:1 Changed 20 months ago by mxhess

# svn diff valuepropagation.py

Index: valuepropagation.py
===================================================================
--- valuepropagation.py (revision 13003)
+++ valuepropagation.py (working copy)
@@ -20,7 +20,7 @@
 """
 ValuePropagation Plugin
 author: Chris Nelson <Chris.Nelson@SIXNET.com>
-version: 0.1
+version: 0.1.001
 
 Update values in other tickets based on ticket changes.  For example,
 with Subtickets plugin and Timing and Estimation plugin in place, a
@@ -342,7 +342,7 @@
                 # FIXME - Put something in the message?
                 # FIXME - the ticket_changed method gets an author, should
                 # this say "value propagation on behalf of <author>"?
-                ticket.save_changes('value propagation', '', when, db, cnum+1)
+                ticket.save_changes('value propagation', '', when, db, cnum=str(cnum+1))
 
             # All the propagation is done, save the new values
             when = datetime.datetime.now()

comment:2 Changed 20 months ago by ChrisNelson

  • Status changed from new to assigned
  • Summary changed from AttributeError: 'int' object has no attribute 'rsplit' to [patch] AttributeError: 'int' object has no attribute 'rsplit'

Thanks for the patch. I'll be sure to apply it next time I come back around to working on this plugin.

Add Comment

Modify Ticket

Action
as assigned The owner will remain ChrisNelson.
Author


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

 
Note: See TracTickets for help on using tickets.