Statistics
| Branch: | Tag: | Revision:

root / ui / urls.py @ b9ff7260

History | View | Annotate | Download (2.9 kB)

1 a5bc3755 Vangelis Koukis
# Copyright 2011 GRNET S.A. All rights reserved.
2 faf5ddde Kostas Papadimitriou
#
3 a5bc3755 Vangelis Koukis
# Redistribution and use in source and binary forms, with or
4 a5bc3755 Vangelis Koukis
# without modification, are permitted provided that the following
5 a5bc3755 Vangelis Koukis
# conditions are met:
6 faf5ddde Kostas Papadimitriou
#
7 a5bc3755 Vangelis Koukis
#   1. Redistributions of source code must retain the above
8 a5bc3755 Vangelis Koukis
#      copyright notice, this list of conditions and the following
9 a5bc3755 Vangelis Koukis
#      disclaimer.
10 faf5ddde Kostas Papadimitriou
#
11 a5bc3755 Vangelis Koukis
#   2. Redistributions in binary form must reproduce the above
12 a5bc3755 Vangelis Koukis
#      copyright notice, this list of conditions and the following
13 a5bc3755 Vangelis Koukis
#      disclaimer in the documentation and/or other materials
14 a5bc3755 Vangelis Koukis
#      provided with the distribution.
15 faf5ddde Kostas Papadimitriou
#
16 a5bc3755 Vangelis Koukis
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17 a5bc3755 Vangelis Koukis
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 a5bc3755 Vangelis Koukis
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 a5bc3755 Vangelis Koukis
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20 a5bc3755 Vangelis Koukis
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 a5bc3755 Vangelis Koukis
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 a5bc3755 Vangelis Koukis
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23 a5bc3755 Vangelis Koukis
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 a5bc3755 Vangelis Koukis
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 a5bc3755 Vangelis Koukis
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26 a5bc3755 Vangelis Koukis
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 a5bc3755 Vangelis Koukis
# POSSIBILITY OF SUCH DAMAGE.
28 faf5ddde Kostas Papadimitriou
#
29 a5bc3755 Vangelis Koukis
# The views and conclusions contained in the software and
30 a5bc3755 Vangelis Koukis
# documentation are those of the authors and should not be
31 a5bc3755 Vangelis Koukis
# interpreted as representing official policies, either expressed
32 a5bc3755 Vangelis Koukis
# or implied, of GRNET S.A.
33 faf5ddde Kostas Papadimitriou
#
34 cc7c5902 Dimitris Moraitis
from django.conf.urls.defaults import *
35 8d08f18a Kostas Papadimitriou
from django.conf import settings
36 cc7c5902 Dimitris Moraitis
import os
37 cc7c5902 Dimitris Moraitis
38 cc7c5902 Dimitris Moraitis
urlpatterns = patterns('',
39 0a5c4b4d Markos Gogoulos
    url(r'^$', 'synnefo.ui.views.home', name='index'),
40 0a5c4b4d Markos Gogoulos
    url(r'^machines$', 'synnefo.ui.views.machines', name='machines'),
41 0a5c4b4d Markos Gogoulos
    url(r'^machines/standard$', 'synnefo.ui.views.machines_icon', name='machines-standard'),
42 0a5c4b4d Markos Gogoulos
    url(r'^machines/list$', 'synnefo.ui.views.machines_list', name='machines-list'),
43 0a5c4b4d Markos Gogoulos
    url(r'^machines/single$', 'synnefo.ui.views.machines_single', name='machines-single'),
44 0a5c4b4d Markos Gogoulos
    url(r'^machines/console$', 'synnefo.ui.views.machines_console', name='machines-console'),
45 fd70c1db Markos Gogoulos
    url(r'^machines/connect$', 'synnefo.ui.views.machines_connect', name='machines-connect'),
46 0a5c4b4d Markos Gogoulos
    url(r'^disks$', 'synnefo.ui.views.disks', name='disks'),
47 0a5c4b4d Markos Gogoulos
    url(r'^images$', 'synnefo.ui.views.images', name='images'),
48 0a5c4b4d Markos Gogoulos
    url(r'^networks$', 'synnefo.ui.views.networks', name='networks'),
49 0a5c4b4d Markos Gogoulos
    url(r'^files$', 'synnefo.ui.views.files', name='files'),
50 0a5c4b4d Markos Gogoulos
    url(r'^desktops$', 'synnefo.ui.views.desktops', name='desktop'),
51 0a5c4b4d Markos Gogoulos
    url(r'^apps$', 'synnefo.ui.views.apps', name='apps'),
52 faf5ddde Kostas Papadimitriou
    url(r'^feedback$', 'synnefo.ui.views.feedback_submit', name='feedback'),
53 0a5c4b4d Markos Gogoulos
    url(r'^static/(.*)$', 'django.views.static.serve',
54 f533f224 Vangelis Koukis
    {'document_root': os.path.join(os.path.dirname(__file__), 'static')}),
55 cc7c5902 Dimitris Moraitis
)
56 0a5c4b4d Markos Gogoulos
57 8d08f18a Kostas Papadimitriou
if settings.DEBUG or settings.TEST:
58 8d08f18a Kostas Papadimitriou
    urlpatterns += patterns('',
59 8d08f18a Kostas Papadimitriou
        url(r'^jstests$', 'synnefo.ui.views.js_tests', name='js_tests'),)
60 8d08f18a Kostas Papadimitriou