Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3209 closed defect (fixed)

TracError not imported in trac.web.api

Reported by: pkropf@… Owned by: Jonas Borgström
Priority: low Milestone: 0.9.6
Component: general Version: 0.9.5
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:

Description (last modified by Christopher Lenz)

While working on a plugin, I came across a problem with trac.web.api. TracError is raised but never defined. Here's a quick fix:

peter@think:~/src/trac-0.9-stable> svn diff trac/web/api.py
Index: trac/web/api.py
===================================================================
--- trac/web/api.py     (revision 3356)
+++ trac/web/api.py     (working copy)
@@ -20,7 +20,7 @@
 import urlparse

 from trac.core import Interface
-from trac.util import http_date
+from trac.util import http_date, TracError

Attachments (0)

Change History (2)

comment:1 by Christopher Lenz, 13 years ago

Description: modified (diff)
Milestone: 0.9.6
Priority: normallow
Severity: normalminor

Good catch, but this is no longer applies to the current trunk, and isn't quite worth a bugfix release IMHO.

comment:2 by Christian Boos, 13 years ago

Resolution: fixed
Status: newclosed

Applied in r3426.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.