Source

wdmmg / wdmmg / controllers / home.py

import logging

from pylons import request, response, session, tmpl_context as c, url
from pylons.controllers.util import abort, redirect

from wdmmg.lib.base import BaseController, render
import wdmmg.model as model

log = logging.getLogger(__name__)

class HomeController(BaseController):

    def index(self):
        c.q = ''
        c.dataset_count = model.Dataset.find().count()
        c.entry_count = model.Entry.find().count() 
        return render('home/index.html')

    def govspending(self):
        return render('home/25kspending.html')