#3209: TracError not imported in trac.web.api
------------------------------+---------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: jonas
Type: defect | Status: new
Priority: low | Milestone: 0.9.6
Component: general | Version: 0.9.5
Severity: minor | Resolution:
Keywords: |
------------------------------+---------------------------------------------
Changes (by cmlenz):
* milestone: => 0.9.6
* priority: normal => low
* severity: normal => minor
Old description:
> 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:
>
> [EMAIL PROTECTED]:~/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
New description:
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:
{{{
[EMAIL PROTECTED]:~/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
}}}
Comment:
Good catch, but this is no longer applies to the current trunk, and isn't
quite worth a bugfix release IMHO.
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/3209>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets