# XXX: need to deal with the global view, but for now API callers come in directly
if list:
resp['X-pglm'] = ':%s:' % (':'.join(['%s/%s/%s' % (list.listid, year, month) for year, month in allyearmonths]))
+ resp['xkey'] = ' '.join(['pgam_{0}/{1}/{2}'.format(l.listid, year, month) for year, month in allyearmonths])
return resp
}
for m in mlist], resp)
resp['X-pgthread'] = msg.threadid
+ resp['xkey'] = 'pgat_{0}'.format(msg.threadid)
return resp
'yearmonth': yearmonth,
})
r['X-pglm'] = ':%s:' % (':'.join(['%s/%s/%s' % (l.listid, year, month) for year, month in allyearmonths]))
+ r['xkey'] = ' '.join(['pgam_{0}/{1}/{2}'.format(l.listid, year, month) for year, month in allyearmonths])
return r
'nextprev': nextprev,
})
r['X-pgthread'] = ":%s:" % m.threadid
+ r['xkey'] = 'pgat_{0}'.format(m.threadid)
r['Last-Modified'] = http_date(newest)
return r
'isfirst': isfirst,
})
r['X-pgthread'] = ":%s:" % msg.threadid
+ r['xkey'] = 'pgat_{0}'.format(msg.threadid)
r['Last-Modified'] = http_date(newest)
return r
else:
r = HttpResponse(row[0][2], content_type='text/plain')
r['X-pgthread'] = ":%s:" % row[0][0]
+ r['xkey'] = 'pgat_{0}'.format(row[0][0])
return r