Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#852 closed defect (fixed)

Small adaptational patch for python 2.3

Reported by: gotoh Owned by: coderanger
Priority: normal Component: TicketDeletePlugin
Severity: major Keywords:
Cc: Trac Release: 0.10


Recent TicketDeletePlugin (r1415) is not work with python 2.3 due to lack of function sorted(). There's a patch.

  • ticketdelete/

    33from trac import __version__ as TRAC_VERSION
    44from trac.core import *
    55from trac.ticket.model import Ticket
     6from trac.util import sorted
    67from trac.web.api import IRequestFilter
    78from import ITemplateProvider, add_script, add_stylesheet
    89from webadmin.web_ui import IAdminPageProvider

BTW, I got error entering this tikcet as user logged in to TracHack

Traceback (most recent call last):
 File "/usr/lib/python2.4/site-packages/trac/web/", line 356,
in dispatch_request
 File "/usr/lib/python2.4/site-packages/trac/web/", line 224,
in dispatch
   resp = chosen_handler.process_request(req)
 File "/usr/lib/python2.4/site-packages/trac/ticket/", line
127, in process_request
   self._do_create(req, db)
 File "/usr/lib/python2.4/site-packages/trac/ticket/", line
188, in _do_create
   self._validate_ticket(req, ticket)
 File "/usr/lib/python2.4/site-packages/trac/ticket/", line
66, in _validate_ticket
   for field, message in manipulator.validate_ticket(req, ticket):
 File "build/bdist.linux-i686/egg/tracspamfilter/", line
39, in validate_ticket
 File "build/bdist.linux-i686/egg/tracspamfilter/", line 78, in test
 File "build/bdist.linux-i686/egg/tracspamfilter/filters/",
line 39, in test
TypeError: expected string or buffer

Attachments (0)

Change History (1)

comment:1 Changed 10 years ago by coderanger

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

(In [1542]) Add compat for Python 2.3 (fixes #852).

Add Comment

Modify Ticket

as closed The owner will remain coderanger.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.