Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / app_settings / urls.py @ f6ff4b40

History | View | Annotate | Download (2.4 kB)

1 adee02b8 Giorgos Verigakis
# Copyright 2011 GRNET S.A. All rights reserved.
2 2ce0636e Kostas Papadimitriou
#
3 adee02b8 Giorgos Verigakis
# Redistribution and use in source and binary forms, with or
4 adee02b8 Giorgos Verigakis
# without modification, are permitted provided that the following
5 adee02b8 Giorgos Verigakis
# conditions are met:
6 2ce0636e Kostas Papadimitriou
#
7 adee02b8 Giorgos Verigakis
#   1. Redistributions of source code must retain the above
8 adee02b8 Giorgos Verigakis
#      copyright notice, this list of conditions and the following
9 adee02b8 Giorgos Verigakis
#      disclaimer.
10 2ce0636e Kostas Papadimitriou
#
11 adee02b8 Giorgos Verigakis
#   2. Redistributions in binary form must reproduce the above
12 adee02b8 Giorgos Verigakis
#      copyright notice, this list of conditions and the following
13 adee02b8 Giorgos Verigakis
#      disclaimer in the documentation and/or other materials
14 adee02b8 Giorgos Verigakis
#      provided with the distribution.
15 2ce0636e Kostas Papadimitriou
#
16 adee02b8 Giorgos Verigakis
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17 adee02b8 Giorgos Verigakis
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 adee02b8 Giorgos Verigakis
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 adee02b8 Giorgos Verigakis
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20 adee02b8 Giorgos Verigakis
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 adee02b8 Giorgos Verigakis
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 adee02b8 Giorgos Verigakis
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23 adee02b8 Giorgos Verigakis
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 adee02b8 Giorgos Verigakis
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 adee02b8 Giorgos Verigakis
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26 adee02b8 Giorgos Verigakis
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 adee02b8 Giorgos Verigakis
# POSSIBILITY OF SUCH DAMAGE.
28 2ce0636e Kostas Papadimitriou
#
29 adee02b8 Giorgos Verigakis
# The views and conclusions contained in the software and
30 adee02b8 Giorgos Verigakis
# documentation are those of the authors and should not be
31 adee02b8 Giorgos Verigakis
# interpreted as representing official policies, either expressed
32 adee02b8 Giorgos Verigakis
# or implied, of GRNET S.A.
33 00b4f1be Faidon Liambotis
34 fcf4155e Giorgos Verigakis
from django.conf.urls.defaults import *
35 11bb4341 Kostas Papadimitriou
from django.conf import settings
36 78dec216 Vassilios Karakoidas
37 00b4f1be Faidon Liambotis
urlpatterns = patterns('',
38 2ce0636e Kostas Papadimitriou
    (r'^ui/', include('synnefo.ui.urls')),
39 d194e869 Kostas Papadimitriou
    url(r'^machines/console$', 'synnefo.ui.views.machines_console',
40 d194e869 Kostas Papadimitriou
        name='ui_machines_console'),
41 d194e869 Kostas Papadimitriou
    url(r'^machines/connect$', 'synnefo.ui.views.machines_connect',
42 d194e869 Kostas Papadimitriou
        name='ui_machines_connect'),
43 027e437a Kostas Papadimitriou
    (r'^vmapi/', include('synnefo.vmapi.urls')),
44 c34de90f Giorgos Verigakis
    (r'^api/', include('synnefo.api.urls')),
45 c34de90f Giorgos Verigakis
    (r'^plankton/', include('synnefo.plankton.urls')),
46 c3564ce9 Kostas Papadimitriou
    (r'^helpdesk/', include('synnefo.helpdesk.urls')),
47 2cc9d3a5 Markos Gogoulos
)
48 2ce0636e Kostas Papadimitriou
49 11bb4341 Kostas Papadimitriou
PROXY_USER_SERVICES = getattr(settings, 'CYCLADES_PROXY_USER_SERVICES', True)
50 11bb4341 Kostas Papadimitriou
if PROXY_USER_SERVICES:
51 11bb4341 Kostas Papadimitriou
    urlpatterns += patterns(
52 11bb4341 Kostas Papadimitriou
        '',
53 11bb4341 Kostas Papadimitriou
        (r'^feedback/?$', 'synnefo.api.delegate.delegate_to_feedback_service'),
54 11bb4341 Kostas Papadimitriou
        (r'^user_catalogs/?$', 'synnefo.api.delegate.delegate_to_user_catalogs_service'))