Modify

Opened 17 years ago

Closed 15 years ago

#3058 closed defect (wontfix)

internal error when trying to change

Reported by: tekiedude Owned by: Sergei Luchko
Priority: normal Component: TicketChangePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

I've installed this on Trac 0.10 and I have TicketDeletePlugin also installed. Here's the error I get when trying to change a comment in a ticket.

Traceback (most recent call last):

File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 356, in dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 224, in dispatch

resp = chosen_handler.process_request(req)

File "build/bdist.linux-i686/egg/ticketchange/web_ui.py", line 93, in process_request

AttributeError: 'str' object has no attribute 'rsplit'

Attachments (0)

Change History (2)

comment:1 Changed 16 years ago by Daniel Atallah

This happens because str.rsplit() is used by the plugin and it requires python 2.4 (you're using 2.3) (http://docs.python.org/lib/string-methods.html)

You can update replace oldvalue.rsplit('.', 1)[-1] at ticketchange/web_ui.py:93 with '.'.join(oldvalue.split('.')[:-1]) and it should work.

comment:2 Changed 15 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

Closing this since a workaround was provided.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Sergei Luchko.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.