~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/atom_ui.py

  • Committer: John Arbash Meinel
  • Date: 2011-02-10 05:49:24 UTC
  • mto: This revision was merged to the branch mainline in revision 424.
  • Revision ID: john@arbash-meinel.com-20110210054924-tdxcko62y6ouizq9
Address bugs #716201, and #716217.

Don't expand a template if we get a HEAD request.

Show diffs side-by-side

added added

removed removed

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