~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/atom_ui.py

  • Committer: Jelmer Vernooij
  • Date: 2008-08-06 18:33:20 UTC
  • mto: (197.1.9 pathargs)
  • mto: This revision was merged to the branch mainline in revision 202.
  • Revision ID: jelmer@samba.org-20080806183320-6llann0k480dlb9y
add --log-folder option.

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
 
27
    def get_values(self, h, args, kw, headers):
29
28
        pagesize = int(20)#self._branch.config.get('pagesize', '20'))
30
29
 
31
 
        revid_list = history.get_file_view(history.last_revid, None)
32
 
        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]))
33
32
 
34
33
        headers['Content-Type'] = 'application/atom+xml'
35
34
        return {
36
35
            'changes': entries,
37
 
            'updated': entries[0].utc_date.isoformat(),
38
 
            'history': self._history,
 
36
            'updated': entries[0].date.isoformat() + 'Z',
39
37
        }