Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / quotaholder / urls.py @ 2864e701

History | View | Annotate | Download (2.3 kB)

1 3e5941c1 Giorgos Korfiatis
# Copyright 2012 GRNET S.A. All rights reserved.
2 3e5941c1 Giorgos Korfiatis
#
3 3e5941c1 Giorgos Korfiatis
# Redistribution and use in source and binary forms, with or
4 3e5941c1 Giorgos Korfiatis
# without modification, are permitted provided that the following
5 3e5941c1 Giorgos Korfiatis
# conditions are met:
6 3e5941c1 Giorgos Korfiatis
#
7 3e5941c1 Giorgos Korfiatis
#   1. Redistributions of source code must retain the above
8 3e5941c1 Giorgos Korfiatis
#      copyright notice, this list of conditions and the following
9 3e5941c1 Giorgos Korfiatis
#      disclaimer.
10 3e5941c1 Giorgos Korfiatis
#
11 3e5941c1 Giorgos Korfiatis
#   2. Redistributions in binary form must reproduce the above
12 3e5941c1 Giorgos Korfiatis
#      copyright notice, this list of conditions and the following
13 3e5941c1 Giorgos Korfiatis
#      disclaimer in the documentation and/or other materials
14 3e5941c1 Giorgos Korfiatis
#      provided with the distribution.
15 3e5941c1 Giorgos Korfiatis
#
16 3e5941c1 Giorgos Korfiatis
# THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17 3e5941c1 Giorgos Korfiatis
# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 3e5941c1 Giorgos Korfiatis
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 3e5941c1 Giorgos Korfiatis
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20 3e5941c1 Giorgos Korfiatis
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 3e5941c1 Giorgos Korfiatis
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 3e5941c1 Giorgos Korfiatis
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23 3e5941c1 Giorgos Korfiatis
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24 3e5941c1 Giorgos Korfiatis
# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 3e5941c1 Giorgos Korfiatis
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26 3e5941c1 Giorgos Korfiatis
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 3e5941c1 Giorgos Korfiatis
# POSSIBILITY OF SUCH DAMAGE.
28 3e5941c1 Giorgos Korfiatis
#
29 3e5941c1 Giorgos Korfiatis
# The views and conclusions contained in the software and
30 3e5941c1 Giorgos Korfiatis
# documentation are those of the authors and should not be
31 3e5941c1 Giorgos Korfiatis
# interpreted as representing official policies, either expressed
32 3e5941c1 Giorgos Korfiatis
# or implied, of GRNET S.A.
33 3e5941c1 Giorgos Korfiatis
34 bbccab8a Giorgos Korfiatis
from django.conf.urls.defaults import *
35 bbccab8a Giorgos Korfiatis
from views import view
36 bbccab8a Giorgos Korfiatis
37 bbccab8a Giorgos Korfiatis
# Uncomment the next two lines to enable the admin:
38 bbccab8a Giorgos Korfiatis
# from django.contrib import admin
39 bbccab8a Giorgos Korfiatis
# admin.autodiscover()
40 bbccab8a Giorgos Korfiatis
41 bbccab8a Giorgos Korfiatis
app_ex = '(?P<appname>[^/]*)'
42 bbccab8a Giorgos Korfiatis
ver_ex = '(?P<version>[^/]*)'
43 bbccab8a Giorgos Korfiatis
call_ex = '(?P<callname>[_A-Za-z0-9]*)'
44 bbccab8a Giorgos Korfiatis
#generic_pattern = (r'^%s/%s/%s' % (app_ex, ver_ex, call_ex), generic_view)
45 bbccab8a Giorgos Korfiatis
46 bbccab8a Giorgos Korfiatis
47 e16cf080 Georgios D. Tsoukalas
#pats = [(r'%s/%s/%s' % (app_ex, ver_ex, call_ex), view)]
48 e16cf080 Georgios D. Tsoukalas
pats = [(r'%s/%s' % (ver_ex, call_ex), view)]
49 bbccab8a Giorgos Korfiatis
                                                
50 bbccab8a Giorgos Korfiatis
51 bbccab8a Giorgos Korfiatis
urlpatterns = patterns('',
52 bbccab8a Giorgos Korfiatis
    # Uncomment the admin/doc line below to enable admin documentation:
53 bbccab8a Giorgos Korfiatis
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
54 bbccab8a Giorgos Korfiatis
55 bbccab8a Giorgos Korfiatis
    # Uncomment the next line to enable the admin:
56 bbccab8a Giorgos Korfiatis
    # (r'^admin/', include(admin.site.urls)),
57 bbccab8a Giorgos Korfiatis
58 bbccab8a Giorgos Korfiatis
    *pats
59 bbccab8a Giorgos Korfiatis
)