Modify

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#852 closed defect (fixed)

Small adaptational patch for python 2.3

Reported by: Shun-ichi Goto <shunichi.goto@…> Owned by: coderanger
Priority: normal Component: TicketDeletePlugin
Severity: major Keywords:
Cc: Trac Release: 0.10

Description

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

  • ticketdelete/web_ui.py

     
    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 trac.web.chrome 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/main.py", line 356,
in dispatch_request
   dispatcher.dispatch(req)
 File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 224,
in dispatch
   resp = chosen_handler.process_request(req)
 File "/usr/lib/python2.4/site-packages/trac/ticket/web_ui.py", line
127, in process_request
   self._do_create(req, db)
 File "/usr/lib/python2.4/site-packages/trac/ticket/web_ui.py", line
188, in _do_create
   self._validate_ticket(req, ticket)
 File "/usr/lib/python2.4/site-packages/trac/ticket/web_ui.py", line
66, in _validate_ticket
   for field, message in manipulator.validate_ticket(req, ticket):
 File "build/bdist.linux-i686/egg/tracspamfilter/adapters.py", line
39, in validate_ticket
 File "build/bdist.linux-i686/egg/tracspamfilter/api.py", line 78, in test
 File "build/bdist.linux-i686/egg/tracspamfilter/filters/regex.py",
line 39, in test
TypeError: expected string or buffer

Attachments (0)

Change History (1)

comment:1 Changed 8 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

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from coderanger. Next status will be '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.