root / pithos / public / urls.py @ 83b4c5fa
History | View | Annotate | Download (1.9 kB)
1 | f7b1d2af | Antony Chazapis | # Copyright 2011 GRNET S.A. All rights reserved.
|
---|---|---|---|
2 | f7b1d2af | Antony Chazapis | #
|
3 | f7b1d2af | Antony Chazapis | # Redistribution and use in source and binary forms, with or
|
4 | f7b1d2af | Antony Chazapis | # without modification, are permitted provided that the following
|
5 | f7b1d2af | Antony Chazapis | # conditions are met:
|
6 | f7b1d2af | Antony Chazapis | #
|
7 | f7b1d2af | Antony Chazapis | # 1. Redistributions of source code must retain the above
|
8 | f7b1d2af | Antony Chazapis | # copyright notice, this list of conditions and the following
|
9 | f7b1d2af | Antony Chazapis | # disclaimer.
|
10 | f7b1d2af | Antony Chazapis | #
|
11 | f7b1d2af | Antony Chazapis | # 2. Redistributions in binary form must reproduce the above
|
12 | f7b1d2af | Antony Chazapis | # copyright notice, this list of conditions and the following
|
13 | f7b1d2af | Antony Chazapis | # disclaimer in the documentation and/or other materials
|
14 | f7b1d2af | Antony Chazapis | # provided with the distribution.
|
15 | f7b1d2af | Antony Chazapis | #
|
16 | f7b1d2af | Antony Chazapis | # THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
|
17 | f7b1d2af | Antony Chazapis | # OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
18 | f7b1d2af | Antony Chazapis | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
19 | f7b1d2af | Antony Chazapis | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
|
20 | f7b1d2af | Antony Chazapis | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21 | f7b1d2af | Antony Chazapis | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22 | f7b1d2af | Antony Chazapis | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
23 | f7b1d2af | Antony Chazapis | # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
24 | f7b1d2af | Antony Chazapis | # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
25 | f7b1d2af | Antony Chazapis | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
26 | f7b1d2af | Antony Chazapis | # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
27 | f7b1d2af | Antony Chazapis | # POSSIBILITY OF SUCH DAMAGE.
|
28 | f7b1d2af | Antony Chazapis | #
|
29 | f7b1d2af | Antony Chazapis | # The views and conclusions contained in the software and
|
30 | f7b1d2af | Antony Chazapis | # documentation are those of the authors and should not be
|
31 | f7b1d2af | Antony Chazapis | # interpreted as representing official policies, either expressed
|
32 | f7b1d2af | Antony Chazapis | # or implied, of GRNET S.A.
|
33 | f7b1d2af | Antony Chazapis | |
34 | f7b1d2af | Antony Chazapis | from django.conf.urls.defaults import * |
35 | f7b1d2af | Antony Chazapis | |
36 | f7b1d2af | Antony Chazapis | # TODO: This only works when in this order.
|
37 | f7b1d2af | Antony Chazapis | urlpatterns = patterns('pithos.public.functions',
|
38 | f7b1d2af | Antony Chazapis | (r'^$', 'method_not_allowed'), |
39 | f7b1d2af | Antony Chazapis | (r'^(?P<v_account>.+?)/(?P<v_container>.+?)/(?P<v_object>.+?)$', 'object_demux'), |
40 | 83b4c5fa | Antony Chazapis | (r'^(?P<v_account>.+?)/(?P<v_container>.+?)/?$', 'method_not_allowed'), |
41 | 83b4c5fa | Antony Chazapis | (r'^(?P<v_account>.+?)/?$', 'method_not_allowed') |
42 | f7b1d2af | Antony Chazapis | ) |