sampleapp/sampleapp/views.py
author Julien Cristau <julien.cristau@logilab.fr>
Thu, 25 Jun 2015 09:51:32 +0200
changeset 11580 e8f8a211e503
parent 11483 7b7ed56bf2fb
permissions -rw-r--r--
[core] adjust cnx handling for cubicweb 3.21 Closes #5731814
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11483
7b7ed56bf2fb Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     1
from pyramid.view import view_config
7b7ed56bf2fb Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     2
7b7ed56bf2fb Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     3
7b7ed56bf2fb Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     4
@view_config(route_name='home', renderer='templates/mytemplate.pt')
7b7ed56bf2fb Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     5
def my_view(request):
7b7ed56bf2fb Add a basic sample application
Christophe de Vienne <christophe@unlish.com>
parents:
diff changeset
     6
    return {'project': 'sampleapp'}