Statistics
| Branch: | Tag: | Revision:

root / ui / src / synnefo / __init__.py @ f73915d9

History | View | Annotate | Download (1.2 kB)

1
from pyramid.configuration import Configurator
2

    
3
def main(global_config, **settings):
4
    """ This function returns our WSGI application.
5
    """
6
    config = Configurator(settings=settings)
7
    config.add_static_view('static', 'synnefo:static')
8
    config.add_route('home', '/', 
9
                     view='synnefo.views.home',
10
                     view_renderer='templates/home.pt')
11

    
12
    config.add_route('instances', '/instances', 
13
                     view='synnefo.views.instances',
14
                     view_renderer='templates/instances.pt')
15

    
16
    config.add_route('list', '/instances/list', 
17
                     view='synnefo.views.instances',
18
                     view_renderer='templates/list.pt')
19

    
20
    config.add_route('storage', '/storage', 
21
                     view='synnefo.views.storage',
22
                     view_renderer='templates/storage.pt')
23

    
24
    config.add_route('images', '/images', 
25
                     view='synnefo.views.images',
26
                     view_renderer='templates/images.pt')
27

    
28
    config.add_route('networks', '/network', 
29
                     view='synnefo.views.network',
30
                     view_renderer='templates/network.pt')
31
    return config.make_wsgi_app()
32