Show More
@@ -24,7 +24,6 b'' | |||||
24 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
24 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
25 |
|
25 | |||
26 | import logging |
|
26 | import logging | |
27 | from operator import itemgetter |
|
|||
28 |
|
27 | |||
29 | from pylons import tmpl_context as c, request |
|
28 | from pylons import tmpl_context as c, request | |
30 | from paste.httpexceptions import HTTPBadRequest |
|
29 | from paste.httpexceptions import HTTPBadRequest | |
@@ -60,10 +59,10 b' class HomeController(BaseController):' | |||||
60 | return HTTPBadRequest() |
|
59 | return HTTPBadRequest() | |
61 |
|
60 | |||
62 | def branch_tag_switcher(self, repo_name): |
|
61 | def branch_tag_switcher(self, repo_name): | |
63 | c.rhodecode_db_repo = Repository.get_by_repo_name(c.repo_name) |
|
|||
64 | c.rhodecode_repo = c.rhodecode_db_repo.scm_instance |
|
|||
65 | return render('/switch_to_list.html') |
|
|||
66 | if request.is_xhr: |
|
62 | if request.is_xhr: | |
|
63 | c.rhodecode_db_repo = Repository.get_by_repo_name(c.repo_name) | |||
|
64 | c.rhodecode_repo = c.rhodecode_db_repo.scm_instance | |||
67 | return render('/switch_to_list.html') |
|
65 | return render('/switch_to_list.html') | |
68 | else: |
|
66 | else: | |
69 | return HTTPBadRequest() |
|
67 | return HTTPBadRequest() | |
|
68 |
General Comments 0
You need to be logged in to leave comments.
Login now