Skip to content

Commit

Permalink
Fix recent_updates view
Browse files Browse the repository at this point in the history
The view was not returning any content after removal of five.grok (refs. #22).
  • Loading branch information
hvelarde committed May 4, 2016
1 parent e4559d4 commit a3136a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/collective/liveblog/browser/recent_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _not_modified(self):
return True
logger.debug(u'No If-Modified-Since header on the request.')

def update(self):
def __call__(self):
logger.debug(
u'Processing request from ' + self.request.environ['REMOTE_ADDR'])

Expand All @@ -86,6 +86,7 @@ def update(self):
self.request.RESPONSE.setHeader('Cache-Control', 'public')
self.request.RESPONSE.setHeader('Expires', expires)
self.request.RESPONSE.setHeader('Last-Modified', last_modified)
return self.index()

# FIXME: caching this function will speed up the rendering of this
# view by at least an order of magnitude, but it will also
Expand Down

0 comments on commit a3136a8

Please sign in to comment.