[Trac-tickets] [The Trac Project] #3209: TracError not imported in trac.web.api

The Trac Project noreply at edgewall.com
Thu Jun 1 19:15:43 CDT 2006


#3209: TracError not imported in trac.web.api
------------------------------+---------------------------------------------
 Reporter:  pkropf at gmail.com  |       Owner:  jonas
     Type:  defect            |      Status:  new  
 Priority:  normal            |   Milestone:       
Component:  general           |     Version:  0.9.5
 Severity:  normal            |    Keywords:       
------------------------------+---------------------------------------------
 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 at 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

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/3209>
The Trac Project <http://trac.edgewall.com/>


More information about the Trac-Tickets mailing list