~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/atom_ui.py

  • Committer: Alexandre Garnier
  • Date: 2009-05-28 22:48:45 UTC
  • mto: This revision was merged to the branch mainline in revision 358.
  • Revision ID: zigouigoui.garnier@laposte.net-20090528224845-6zch249hrt8g6v9a
Add bug link in revision informations

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