Changeset - 87e9718ab4a2
[Not reviewed]
codereview
0 4 0
Marcin Kuzminski - 14 years ago 2012-05-07 22:07:55
marcin@python-works.com
Use webob exception as often as possible
4 files changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/admin/repos.py
Show inline comments
 
@@ -25,13 +25,13 @@
 

	
 
import logging
 
import traceback
 
import formencode
 
from formencode import htmlfill
 

	
 
from paste.httpexceptions import HTTPInternalServerError
 
from webob.exc import HTTPInternalServerError
 
from pylons import request, session, tmpl_context as c, url
 
from pylons.controllers.util import redirect
 
from pylons.i18n.translation import _
 
from sqlalchemy.exc import IntegrityError
 

	
 
from rhodecode.lib import helpers as h
rhodecode/controllers/compare.py
Show inline comments
 
@@ -48,14 +48,14 @@ class CompareController(BaseRepoControll
 
        """
 
        Parse the org...other string
 
        Possible formats are `(branch|book|tag):<name>...(branch|book|tag):<othername>`
 
        or using a repo <empty>...(repo:</rhodecode/path/to/other)
 

	
 

	
 
        :param ref:
 
        :type ref:
 
        :param ref: <orginal_reference>...<other_reference>
 
        :type ref: str
 
        """
 
        org_repo = c.rhodecode_repo.name
 

	
 
        def org_parser(org):
 
            _repo = org_repo
 
            name, val = org.split(':')
rhodecode/controllers/home.py
Show inline comments
 
@@ -23,13 +23,13 @@
 
# You should have received a copy of the GNU General Public License
 
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 

	
 
import logging
 

	
 
from pylons import tmpl_context as c, request
 
from paste.httpexceptions import HTTPBadRequest
 
from webob.exc import HTTPBadRequest
 

	
 
from rhodecode.lib.auth import LoginRequired
 
from rhodecode.lib.base import BaseController, render
 
from rhodecode.model.db import Repository
 

	
 
log = logging.getLogger(__name__)
rhodecode/controllers/journal.py
Show inline comments
 
@@ -27,13 +27,13 @@ from itertools import groupby
 

	
 
from sqlalchemy import or_
 
from sqlalchemy.orm import joinedload
 
from webhelpers.paginate import Page
 
from webhelpers.feedgenerator import Atom1Feed, Rss201rev2Feed
 

	
 
from paste.httpexceptions import HTTPBadRequest
 
from webob.exc import HTTPBadRequest
 
from pylons import request, tmpl_context as c, response, url
 
from pylons.i18n.translation import _
 

	
 
import rhodecode.lib.helpers as h
 
from rhodecode.lib.auth import LoginRequired, NotAnonymous
 
from rhodecode.lib.base import BaseController, render
0 comments (0 inline, 0 general)