Mercurial > kallithea
comparison rhodecode/controllers/changeset.py @ 2971:2bfcec6a3985 beta
new tooltip implementation
- added lazy loading of changeset tooltips for journal data
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 29 Oct 2012 21:18:14 +0100 |
parents | acc05c33cc0c |
children | b84a4ec93ab6 |
comparison
equal
deleted
inserted
replaced
2970:6248c6fb1fcf | 2971:2bfcec6a3985 |
---|---|
24 # You should have received a copy of the GNU General Public License | 24 # You should have received a copy of the GNU General Public License |
25 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 25 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
26 import logging | 26 import logging |
27 import traceback | 27 import traceback |
28 from collections import defaultdict | 28 from collections import defaultdict |
29 from webob.exc import HTTPForbidden | 29 from webob.exc import HTTPForbidden, HTTPBadRequest |
30 | 30 |
31 from pylons import tmpl_context as c, url, request, response | 31 from pylons import tmpl_context as c, url, request, response |
32 from pylons.i18n.translation import _ | 32 from pylons.i18n.translation import _ |
33 from pylons.controllers.util import redirect | 33 from pylons.controllers.util import redirect |
34 from pylons.decorators import jsonify | 34 from pylons.decorators import jsonify |
443 ChangesetCommentsModel().delete(comment=co) | 443 ChangesetCommentsModel().delete(comment=co) |
444 Session().commit() | 444 Session().commit() |
445 return True | 445 return True |
446 else: | 446 else: |
447 raise HTTPForbidden() | 447 raise HTTPForbidden() |
448 | |
449 @jsonify | |
450 def changeset_info(self, repo_name, revision): | |
451 if request.is_xhr or 1: | |
452 return c.rhodecode_repo.get_changeset(revision) | |
453 else: | |
454 raise HTTPBadRequest() |