vigiboard / vigiboard / controllers / controller.template @ dde732e5
History | View | Annotate | Download (624 Bytes)
1 | 49c8da1d | Thomas ANDREJAK | # -*- 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 vigiboard.lib.base import BaseController |
||
14 | #from vigiboard.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('vigiboard.templates.index') |
||
22 | def index(self): |
||
23 | return dict(page='index') |