##// END OF EJS Templates
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.

File last commit:

r193:50a39f92 default
r193:50a39f92 default
Show More
changeset.py
23 lines | 772 B | text/x-python | PythonLexer
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
r193 from pylons import request, response, session, tmpl_context as c, url, config, \
app_globals as g
Added changeset controllers
r103 from pylons.controllers.util import abort, redirect
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
r193 from pylons_app.lib.auth import LoginRequired
Added changeset controllers
r103 from pylons_app.lib.base import BaseController, render
from pylons_app.lib.utils import get_repo_slug
from pylons_app.model.hg_model import HgModel
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
r193 import logging
Added changeset controllers
r103 log = logging.getLogger(__name__)
class ChangesetController(BaseController):
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
r193
@LoginRequired()
Added changeset controllers
r103 def __before__(self):
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
r193 super(ChangesetController, self).__before__()
Added changeset controllers
r103
Added file annotation template. Bumped version to 0.6.8. Changelog and changeset are now cleaned with js, it's still very beta.
r193 def index(self, revision):
hg_model = HgModel()
c.changeset = hg_model.get_repo(c.repo_name).get_changeset(revision)
return render('changeset/changeset.html')