new_contents: #/usr/bin/env python
  # -*- coding: utf-8 -*-
  #
  # Copyright (c) 2010-2012 Cidadania S. Coop. Galega
  #
  # This file is part of e-cidadania.
  #
  # e-cidadania is free software: you can redistribute it and/or modify
  # it under the terms of the GNU General Public License as published by
  # the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # e-cidadania is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU General Public License for more details.
  #
  # You should have received a copy of the GNU General Public License
  # along with e-cidadania. If not, see <http://www.gnu.org/licenses/>.
  
  
  from django.views.generic.list import ListView
  
  from apps.ecidadania.news.models import Post
  
  
  class ListNews(ListView):
  
      """
      List all the news within a space.
      """
      paginate_by = 10
      template_name = 'news/news_list.html'
  
      def get_queryset(self):
          news = Post.objects.all().filter(pub_index = True)
  
          return news
subject: Add core.views.news.py and move the relevant code from core.views.py