Edgewall Software
Modify

Ticket #3209 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

TracError not imported in trac.web.api

Reported by: pkropf@… Owned by: jonas
Priority: low Milestone: 0.9.6
Component: general Version: 0.9.5
Severity: minor Keywords:
Cc:
Release Notes:
API Changes:

Description (last modified by cmlenz) (diff)

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

Change History

comment:1 Changed 6 years ago by cmlenz

  • Description modified (diff)
  • Milestone set to 0.9.6
  • Priority changed from normal to low
  • Severity changed from normal to minor

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

comment:2 Changed 6 years ago by cboos

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

Applied in r3426.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.