~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/download_ui.py

  • Committer: Robey Pointer
  • Date: 2007-01-14 05:39:26 UTC
  • Revision ID: robey@lag.net-20070114053926-h3xxpcz26jy8cp2n
don't want this file anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
class DownloadUI (object):
38
38
 
 
39
    def __init__(self, branch):
 
40
        # BranchView object
 
41
        self._branch = branch
 
42
        self.log = branch.log
 
43
 
39
44
    @turbogears.expose()
40
45
    def default(self, *args, **kw):
41
46
        # /download/<rev_id>/<file_id>/[filename]
42
47
        z = time.time()
43
 
        h = util.get_history()
 
48
        h = self._branch.get_history()
44
49
        
45
50
        if len(args) < 2:
46
 
            raise HTTPRedirect(turbogears.url('/changes'))
 
51
            raise HTTPRedirect(self._branch.url('/changes'))
47
52
        
48
53
        revid = h.fix_revid(args[0])
49
54
        file_id = args[1]