Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / dashboard / controllers / controller.template @ 805cc54a

History | View | Annotate | Download (624 Bytes)

1
# -*- coding: utf-8 -*-
2
"""Sample controller module"""
3

    
4
# turbogears imports
5
from tg import expose
6
#from tg import redirect, validate, flash
7

    
8
# third party imports
9
#from pylons.i18n import ugettext as _
10
#from repoze.what import predicates
11

    
12
# project specific imports
13
from dashboard.lib.base import BaseController
14
#from dashboard.model import DBSession, metadata
15

    
16

    
17
class SampleController(BaseController):
18
    #Uncomment this line if your controller requires an authenticated user
19
    #allow_only = authorize.not_anonymous()
20
    
21
    @expose('dashboard.templates.index')
22
    def index(self):
23
        return dict(page='index')