~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/atom_ui.py

  • Committer: Michael Hudson
  • Date: 2008-09-12 04:36:13 UTC
  • Revision ID: michael.hudson@canonical.com-20080912043613-d2550i1udbl2g86b
our tests aren't the greatest, but let's keep them passing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
    template_path = 'loggerhead.templates.atom'
26
26
 
27
 
    def get_values(self, path, kwargs, headers):
28
 
        history = self._history
29
 
        revid = self.get_revid()
 
27
    def get_values(self, h, args, kw, headers):
30
28
        pagesize = int(20)#self._branch.config.get('pagesize', '20'))
31
29
 
32
 
        revid_list = history.get_file_view(history.last_revid, None)
33
 
        entries = list(history.get_changes(list(revid_list)[:pagesize]))
 
30
        revid_list = h.get_file_view(h.last_revid, None)
 
31
        entries = list(h.get_changes(list(revid_list)[:pagesize]))
34
32
 
35
33
        headers['Content-Type'] = 'application/atom+xml'
36
34
        return {
37
35
            'changes': entries,
38
36
            'updated': entries[0].date.isoformat() + 'Z',
39
 
            'history': self._history,
40
37
        }