root / pithos / im / urls.py @ 0dadf7b2
History | View | Annotate | Download (3.3 kB)
1 | aa4fac11 | Giorgos Verigakis | # Copyright 2011 GRNET S.A. All rights reserved.
|
---|---|---|---|
2 | aa4fac11 | Giorgos Verigakis | #
|
3 | aa4fac11 | Giorgos Verigakis | # Redistribution and use in source and binary forms, with or
|
4 | aa4fac11 | Giorgos Verigakis | # without modification, are permitted provided that the following
|
5 | aa4fac11 | Giorgos Verigakis | # conditions are met:
|
6 | aa4fac11 | Giorgos Verigakis | #
|
7 | aa4fac11 | Giorgos Verigakis | # 1. Redistributions of source code must retain the above
|
8 | aa4fac11 | Giorgos Verigakis | # copyright notice, this list of conditions and the following
|
9 | aa4fac11 | Giorgos Verigakis | # disclaimer.
|
10 | aa4fac11 | Giorgos Verigakis | #
|
11 | aa4fac11 | Giorgos Verigakis | # 2. Redistributions in binary form must reproduce the above
|
12 | aa4fac11 | Giorgos Verigakis | # copyright notice, this list of conditions and the following
|
13 | aa4fac11 | Giorgos Verigakis | # disclaimer in the documentation and/or other materials
|
14 | aa4fac11 | Giorgos Verigakis | # provided with the distribution.
|
15 | aa4fac11 | Giorgos Verigakis | #
|
16 | aa4fac11 | Giorgos Verigakis | # THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
|
17 | aa4fac11 | Giorgos Verigakis | # OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
18 | aa4fac11 | Giorgos Verigakis | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
19 | aa4fac11 | Giorgos Verigakis | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
|
20 | aa4fac11 | Giorgos Verigakis | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21 | aa4fac11 | Giorgos Verigakis | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22 | aa4fac11 | Giorgos Verigakis | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
23 | aa4fac11 | Giorgos Verigakis | # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
24 | aa4fac11 | Giorgos Verigakis | # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
25 | aa4fac11 | Giorgos Verigakis | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
26 | aa4fac11 | Giorgos Verigakis | # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
27 | aa4fac11 | Giorgos Verigakis | # POSSIBILITY OF SUCH DAMAGE.
|
28 | aa4fac11 | Giorgos Verigakis | #
|
29 | aa4fac11 | Giorgos Verigakis | # The views and conclusions contained in the software and
|
30 | aa4fac11 | Giorgos Verigakis | # documentation are those of the authors and should not be
|
31 | aa4fac11 | Giorgos Verigakis | # interpreted as representing official policies, either expressed
|
32 | aa4fac11 | Giorgos Verigakis | # or implied, of GRNET S.A.
|
33 | aa4fac11 | Giorgos Verigakis | |
34 | aa4fac11 | Giorgos Verigakis | from django.conf import settings |
35 | 7e392d16 | Antony Chazapis | from django.conf.urls.defaults import patterns |
36 | d7d60147 | Antony Chazapis | |
37 | d7d60147 | Antony Chazapis | |
38 | 7e392d16 | Antony Chazapis | urlpatterns = patterns('pithos.im.views',
|
39 | 7e392d16 | Antony Chazapis | (r'^$', 'index'), |
40 | 7e392d16 | Antony Chazapis | (r'^login/?$', 'index'), |
41 | 7e392d16 | Antony Chazapis | |
42 | 7e392d16 | Antony Chazapis | (r'^admin/?$', 'admin'), |
43 | 51c0cb6e | Antony Chazapis | |
44 | 7e392d16 | Antony Chazapis | (r'^admin/users/?$', 'users_list'), |
45 | 7e392d16 | Antony Chazapis | (r'^admin/users/(\d+)/?$', 'users_info'), |
46 | 7e392d16 | Antony Chazapis | (r'^admin/users/create$', 'users_create'), |
47 | 7e392d16 | Antony Chazapis | (r'^admin/users/(\d+)/modify/?$', 'users_modify'), |
48 | 0dadf7b2 | Sofia Papagiannaki | (r'^admin/users/(\d+)/delete/?$', 'users_delete'), |
49 | 0dadf7b2 | Sofia Papagiannaki | |
50 | 0dadf7b2 | Sofia Papagiannaki | (r'^admin/invitations/?$', 'invitations_list'), |
51 | 0dadf7b2 | Sofia Papagiannaki | (r'^admin/invitations/export/?$', 'invitations_export'), |
52 | 7e392d16 | Antony Chazapis | ) |
53 | 7e392d16 | Antony Chazapis | |
54 | a7ae042e | Sofia Papagiannaki | urlpatterns += patterns('pithos.im.target',
|
55 | a7ae042e | Sofia Papagiannaki | (r'^login/dummy/?$', 'dummy.login') |
56 | 7e392d16 | Antony Chazapis | ) |
57 | 7e392d16 | Antony Chazapis | |
58 | 7e392d16 | Antony Chazapis | urlpatterns += patterns('',
|
59 | 5c8eb4eb | Antony Chazapis | (r'^static/(?P<path>.*)$', 'django.views.static.serve', |
60 | 5c8eb4eb | Antony Chazapis | {'document_root': settings.PROJECT_PATH + '/im/static'}) |
61 | 7e392d16 | Antony Chazapis | ) |
62 | c08d0b66 | Antony Chazapis | |
63 | c08d0b66 | Antony Chazapis | if 'local' in settings.IM_STANDARD_MODULES: |
64 | c08d0b66 | Antony Chazapis | urlpatterns += patterns('pithos.im.views',
|
65 | c08d0b66 | Antony Chazapis | (r'^local/create/?$', 'local_create'), |
66 | c08d0b66 | Antony Chazapis | (r'^local/reclaim/?$', 'reclaim_password') |
67 | c08d0b66 | Antony Chazapis | ) |
68 | c08d0b66 | Antony Chazapis | urlpatterns += patterns('pithos.im.target',
|
69 | c08d0b66 | Antony Chazapis | (r'^local/?$', 'local.login'), |
70 | c08d0b66 | Antony Chazapis | (r'^local/activate/?$', 'local.activate'), |
71 | c08d0b66 | Antony Chazapis | (r'^local/reset/?$', 'local.reset_password') |
72 | c08d0b66 | Antony Chazapis | ) |
73 | c08d0b66 | Antony Chazapis | |
74 | c08d0b66 | Antony Chazapis | if 'invitation' in settings.IM_STANDARD_MODULES: |
75 | c08d0b66 | Antony Chazapis | urlpatterns += patterns('pithos.im.views',
|
76 | c08d0b66 | Antony Chazapis | (r'^invite/?$', 'invite'), |
77 | c08d0b66 | Antony Chazapis | ) |
78 | c08d0b66 | Antony Chazapis | urlpatterns += patterns('pithos.im.target',
|
79 | c08d0b66 | Antony Chazapis | (r'^login/invitation/?$', 'invitation.login') |
80 | c08d0b66 | Antony Chazapis | ) |
81 | c08d0b66 | Antony Chazapis | |
82 | c08d0b66 | Antony Chazapis | if 'shibboleth' in settings.IM_OTHER_MODULES: |
83 | c08d0b66 | Antony Chazapis | urlpatterns += patterns('pithos.im.target',
|
84 | c08d0b66 | Antony Chazapis | (r'^login/shibboleth/?$', 'shibboleth.login') |
85 | c08d0b66 | Antony Chazapis | ) |
86 | c08d0b66 | Antony Chazapis | |
87 | c08d0b66 | Antony Chazapis | if 'twitter' in settings.IM_OTHER_MODULES: |
88 | c08d0b66 | Antony Chazapis | urlpatterns += patterns('pithos.im.target',
|
89 | c08d0b66 | Antony Chazapis | (r'^login/twitter/?$', 'twitter.login'), |
90 | c08d0b66 | Antony Chazapis | (r'^login/twitter/authenticated/?$', 'twitter.authenticated') |
91 | c08d0b66 | Antony Chazapis | ) |