##// END OF EJS Templates
rewritten db manage script to use sqlalchemy. Fixed sqlalchemy models to more generic.
rewritten db manage script to use sqlalchemy. Fixed sqlalchemy models to more generic.

File last commit:

r191:b68b2246 default
r226:c6526b75 default
Show More
branches.py
24 lines | 752 B | text/x-python | PythonLexer
import logging
from pylons import tmpl_context as c, app_globals as g, session, request, config, url
from pylons.controllers.util import abort, redirect
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
from pylons_app.lib.auth import LoginRequired
log = logging.getLogger(__name__)
class BranchesController(BaseController):
@LoginRequired()
def __before__(self):
super(BranchesController, self).__before__()
def index(self):
hg_model = HgModel()
c.repo_info = hg_model.get_repo(c.repo_name)
c.repo_branches = c.repo_info.branches
return render('branches/branches.html')