old_contents: from flask import g, render_template
  
  from abilian.sbe.apps.communities.blueprint import Blueprint
  
  from .util import get_recent_entries
  from .presenters import ActivityEntryPresenter
  
  
  wall = Blueprint("wall", __name__,
                   url_prefix="/wall",
                   template_folder="templates")
  route = wall.route
  
  
  @wall.url_value_preprocessor
  def set_current_tab(endpoint, values):
    g.current_tab = 'wall'
  
  
  @route('')
  def index():
    entries = get_recent_entries(20, community=g.community)
    entries = ActivityEntryPresenter.wrap_collection(entries)
    return render_template("wall/index.html", entries=entries)
  
new_contents: # coding=utf-8
  """
  """
  from __future__ import absolute_import
  
  from flask import g, render_template
  
  from abilian.web.action import actions
  from abilian.sbe.apps.communities.blueprint import Blueprint
  
  from .util import get_recent_entries
  from .presenters import ActivityEntryPresenter
  
  
  wall = Blueprint("wall", __name__,
                   url_prefix="/wall",
                   template_folder="templates")
  route = wall.route
  
  
  @wall.url_value_preprocessor
  def set_current_tab(endpoint, values):
    g.current_tab = 'wall'
  
  
  @route('')
  def index():
    actions.context['object'] = g.community._model
    entries = get_recent_entries(20, community=g.community)
    entries = ActivityEntryPresenter.wrap_collection(entries)
    return render_template("wall/index.html", entries=entries)
  
subject: set 'community' as actions object context