~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/changelog_ui.py

  • Committer: Robey Pointer
  • Date: 2006-12-11 19:23:51 UTC
  • Revision ID: robey@lag.net-20061211192351-vccvnat6o01fxnl3
add revision page, put some of the config in the config file

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
from loggerhead import util
29
29
 
30
30
 
31
 
FOLDER = '/Users/robey/code/paramiko/paramiko'
32
 
BRANCH_NAME = 'paramiko-dev'
33
 
 
34
31
class ChangeLogUI (object):
35
32
 
36
33
    @turbogears.expose(html='loggerhead.templates.changelog', content_type='html')
37
34
    def default(self, *args, **kw):
38
 
        h = History.from_folder(FOLDER)
 
35
        h = History.from_folder(turbogears.config.get('loggerhead.folder'))
39
36
        if len(args) > 0:
40
37
            revid = args[0]
41
38
        else:
56
53
        } for m_revid in merge_revids]
57
54
 
58
55
        vals = {
59
 
            'branch_name': BRANCH_NAME,
 
56
            'branch_name': turbogears.config.get('loggerhead.branch_name'),
60
57
            'changes': entries,
61
58
            'util': util,
62
59
            'history': h,
63
60
            'scan_url': '/changes',
 
61
            'pagesize': 20,
64
62
            'revid': revid,
65
63
            'buttons': buttons,
66
64
            'merge_points': [util.Container(m) for m in merge_points],