Modify

Opened 6 years ago

Closed 5 years ago

#3058 closed defect (wontfix)

internal error when trying to change

Reported by: pcstuff@… Owned by: SergeiLuchko
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 6 years ago by datallah

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 5 years ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

Closing this since a workaround was provided.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.