# # # patch "handlers.py" # from [e9af5798e92963ad207ab1c3a3646818ae952175] # to [f5978ee498a2bce37a15bdc0e509e8bb56609e33] # # patch "render.py" # from [2a55c2e22ff97d808ca4fd06d39eb7bea8a101d3] # to [b93fcb701c8361ee69bdffaf507de225768315b0] # # patch "templates/base.html" # from [8d1f9004c63ca950378f4dc1425deee063b0216d] # to [47574ccfc9aff518749857eb878ba93c8f2e9f48] # # patch "viewmtn.py" # from [ae38f0301e147803284029b0216e4c0c4e5fd6bb] # to [c5366d46df9e87de6c4357412799dc5220e3a0cc] # ============================================================ --- handlers.py e9af5798e92963ad207ab1c3a3646818ae952175 +++ handlers.py f5978ee498a2bce37a15bdc0e509e8bb56609e33 @@ -37,16 +37,13 @@ else: else: mimeicon = None -# Figure out branch divisions -divisions = branchdiv.BranchDivisions () - class Index(object): def GET(self, ctxt): branches = list(ctxt.ops.branches ()) - divisions.calculate_divisions (branches) + ctxt.branchdivs.calculate_divisions (branches) def division_iter(): bitter = iter(branches) - divs = divisions.divisions + divs = ctxt.branchdivs.divisions n_divs = len(divs) in_divs = {} look_for = 0 ============================================================ --- render.py 2a55c2e22ff97d808ca4fd06d39eb7bea8a101d3 +++ render.py b93fcb701c8361ee69bdffaf507de225768315b0 @@ -133,7 +133,7 @@ class Renderer(object): class Renderer(object): - def __init__(self): + def __init__(self, **kwargs): # any templates that can be inherited from, should be added to the list here self.templates = [ ('base.html', 'base'), ('revision.html', 'revision'), @@ -149,6 +149,7 @@ class Renderer(object): 'static_uri_path' : config.static_uri_path, 'version' : release.version, } + self.terms.update(kwargs) def load_templates(self): if self._templates_loaded: return ============================================================ --- templates/base.html 8d1f9004c63ca950378f4dc1425deee063b0216d +++ templates/base.html 47574ccfc9aff518749857eb878ba93c8f2e9f48 @@ -16,7 +16,11 @@