##// END OF EJS Templates
Use webob exception as often as possible
marcink -
r2242:87e9718a codereview
parent child Browse files
Show More
@@ -28,7 +28,7 b' import traceback'
28 import formencode
28 import formencode
29 from formencode import htmlfill
29 from formencode import htmlfill
30
30
31 from paste.httpexceptions import HTTPInternalServerError
31 from webob.exc import HTTPInternalServerError
32 from pylons import request, session, tmpl_context as c, url
32 from pylons import request, session, tmpl_context as c, url
33 from pylons.controllers.util import redirect
33 from pylons.controllers.util import redirect
34 from pylons.i18n.translation import _
34 from pylons.i18n.translation import _
@@ -51,8 +51,8 b' class CompareController(BaseRepoControll'
51 or using a repo <empty>...(repo:</rhodecode/path/to/other)
51 or using a repo <empty>...(repo:</rhodecode/path/to/other)
52
52
53
53
54 :param ref:
54 :param ref: <orginal_reference>...<other_reference>
55 :type ref:
55 :type ref: str
56 """
56 """
57 org_repo = c.rhodecode_repo.name
57 org_repo = c.rhodecode_repo.name
58
58
@@ -26,7 +26,7 b''
26 import logging
26 import logging
27
27
28 from pylons import tmpl_context as c, request
28 from pylons import tmpl_context as c, request
29 from paste.httpexceptions import HTTPBadRequest
29 from webob.exc import HTTPBadRequest
30
30
31 from rhodecode.lib.auth import LoginRequired
31 from rhodecode.lib.auth import LoginRequired
32 from rhodecode.lib.base import BaseController, render
32 from rhodecode.lib.base import BaseController, render
@@ -30,7 +30,7 b' from sqlalchemy.orm import joinedload'
30 from webhelpers.paginate import Page
30 from webhelpers.paginate import Page
31 from webhelpers.feedgenerator import Atom1Feed, Rss201rev2Feed
31 from webhelpers.feedgenerator import Atom1Feed, Rss201rev2Feed
32
32
33 from paste.httpexceptions import HTTPBadRequest
33 from webob.exc import HTTPBadRequest
34 from pylons import request, tmpl_context as c, response, url
34 from pylons import request, tmpl_context as c, response, url
35 from pylons.i18n.translation import _
35 from pylons.i18n.translation import _
36
36
General Comments 0
You need to be logged in to leave comments. Login now