root / snf-astakos-app / astakos / im / urls.py @ d3e3dd89
History | View | Annotate | Download (3.4 kB)
1 | aba1e498 | Antony Chazapis | # Copyright 2011-2012 GRNET S.A. All rights reserved.
|
---|---|---|---|
2 | 94459980 | Kostas Papadimitriou | #
|
3 | 64cd4730 | Antony Chazapis | # Redistribution and use in source and binary forms, with or
|
4 | 64cd4730 | Antony Chazapis | # without modification, are permitted provided that the following
|
5 | 64cd4730 | Antony Chazapis | # conditions are met:
|
6 | 94459980 | Kostas Papadimitriou | #
|
7 | 64cd4730 | Antony Chazapis | # 1. Redistributions of source code must retain the above
|
8 | 64cd4730 | Antony Chazapis | # copyright notice, this list of conditions and the following
|
9 | 64cd4730 | Antony Chazapis | # disclaimer.
|
10 | 94459980 | Kostas Papadimitriou | #
|
11 | 64cd4730 | Antony Chazapis | # 2. Redistributions in binary form must reproduce the above
|
12 | 64cd4730 | Antony Chazapis | # copyright notice, this list of conditions and the following
|
13 | 64cd4730 | Antony Chazapis | # disclaimer in the documentation and/or other materials
|
14 | 64cd4730 | Antony Chazapis | # provided with the distribution.
|
15 | 94459980 | Kostas Papadimitriou | #
|
16 | 64cd4730 | Antony Chazapis | # THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
|
17 | 64cd4730 | Antony Chazapis | # OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
18 | 64cd4730 | Antony Chazapis | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
19 | 64cd4730 | Antony Chazapis | # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
|
20 | 64cd4730 | Antony Chazapis | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
21 | 64cd4730 | Antony Chazapis | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22 | 64cd4730 | Antony Chazapis | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
23 | 64cd4730 | Antony Chazapis | # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
24 | 64cd4730 | Antony Chazapis | # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
25 | 64cd4730 | Antony Chazapis | # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
26 | 64cd4730 | Antony Chazapis | # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
27 | 64cd4730 | Antony Chazapis | # POSSIBILITY OF SUCH DAMAGE.
|
28 | 94459980 | Kostas Papadimitriou | #
|
29 | 64cd4730 | Antony Chazapis | # The views and conclusions contained in the software and
|
30 | 64cd4730 | Antony Chazapis | # documentation are those of the authors and should not be
|
31 | 64cd4730 | Antony Chazapis | # interpreted as representing official policies, either expressed
|
32 | 64cd4730 | Antony Chazapis | # or implied, of GRNET S.A.
|
33 | 64cd4730 | Antony Chazapis | |
34 | 794852f2 | Sofia Papagiannaki | from django.conf.urls.defaults import patterns, include, url |
35 | 64cd4730 | Antony Chazapis | |
36 | e2125441 | Sofia Papagiannaki | from astakos.im.forms import ExtendedPasswordResetForm |
37 | 94459980 | Kostas Papadimitriou | from astakos.im.settings import IM_MODULES, INVITATIONS_ENABLED |
38 | e2125441 | Sofia Papagiannaki | |
39 | 64cd4730 | Antony Chazapis | urlpatterns = patterns('astakos.im.views',
|
40 | 794852f2 | Sofia Papagiannaki | url(r'^$', 'index'), |
41 | 794852f2 | Sofia Papagiannaki | url(r'^login/?$', 'index'), |
42 | 794852f2 | Sofia Papagiannaki | url(r'^profile/?$', 'edit_profile'), |
43 | 794852f2 | Sofia Papagiannaki | url(r'^feedback/?$', 'send_feedback'), |
44 | 794852f2 | Sofia Papagiannaki | url(r'^signup/?$', 'signup'), |
45 | 7482228b | Sofia Papagiannaki | url(r'^logout/?$', 'logout'), |
46 | 17bebf7e | Antony Chazapis | url(r'^activate/?$', 'activate') |
47 | 890b0eaf | Sofia Papagiannaki | ) |
48 | 890b0eaf | Sofia Papagiannaki | |
49 | 64cd4730 | Antony Chazapis | urlpatterns += patterns('astakos.im.target',
|
50 | a196eb7e | Sofia Papagiannaki | url(r'^login/redirect/?$', 'redirect.login') |
51 | 64cd4730 | Antony Chazapis | ) |
52 | 64cd4730 | Antony Chazapis | |
53 | 92defad4 | Sofia Papagiannaki | if 'local' in IM_MODULES: |
54 | 64cd4730 | Antony Chazapis | urlpatterns += patterns('astakos.im.target',
|
55 | 2126d85d | Sofia Papagiannaki | url(r'^local/?$', 'local.login') |
56 | 890b0eaf | Sofia Papagiannaki | ) |
57 | 890b0eaf | Sofia Papagiannaki | urlpatterns += patterns('django.contrib.auth.views',
|
58 | 794852f2 | Sofia Papagiannaki | url(r'^local/password_reset/?$', 'password_reset', |
59 | e2125441 | Sofia Papagiannaki | {'email_template_name':'registration/password_email.txt', |
60 | e2125441 | Sofia Papagiannaki | 'password_reset_form':ExtendedPasswordResetForm}),
|
61 | 794852f2 | Sofia Papagiannaki | url(r'^local/password_reset_done/?$', 'password_reset_done'), |
62 | 794852f2 | Sofia Papagiannaki | url(r'^local/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
|
63 | 890b0eaf | Sofia Papagiannaki | 'password_reset_confirm'),
|
64 | a196eb7e | Sofia Papagiannaki | url(r'^local/password/reset/complete/$', 'password_reset_complete'), |
65 | 1ae97c83 | Sofia Papagiannaki | url(r'^password/?$', 'password_change', {'post_change_redirect':'profile'}, name='password_change') |
66 | 64cd4730 | Antony Chazapis | ) |
67 | 64cd4730 | Antony Chazapis | |
68 | 92defad4 | Sofia Papagiannaki | if INVITATIONS_ENABLED:
|
69 | 64cd4730 | Antony Chazapis | urlpatterns += patterns('astakos.im.views',
|
70 | 17bebf7e | Antony Chazapis | url(r'^invite/?$', 'invite') |
71 | 64cd4730 | Antony Chazapis | ) |
72 | 64cd4730 | Antony Chazapis | |
73 | 92defad4 | Sofia Papagiannaki | if 'shibboleth' in IM_MODULES: |
74 | 64cd4730 | Antony Chazapis | urlpatterns += patterns('astakos.im.target',
|
75 | 794852f2 | Sofia Papagiannaki | url(r'^login/shibboleth/?$', 'shibboleth.login') |
76 | 64cd4730 | Antony Chazapis | ) |
77 | 64cd4730 | Antony Chazapis | |
78 | 92defad4 | Sofia Papagiannaki | if 'twitter' in IM_MODULES: |
79 | 64cd4730 | Antony Chazapis | urlpatterns += patterns('astakos.im.target',
|
80 | 794852f2 | Sofia Papagiannaki | url(r'^login/twitter/?$', 'twitter.login'), |
81 | 794852f2 | Sofia Papagiannaki | url(r'^login/twitter/authenticated/?$', 'twitter.authenticated') |
82 | 64cd4730 | Antony Chazapis | ) |
83 | 64cd4730 | Antony Chazapis | |
84 | 64cd4730 | Antony Chazapis | urlpatterns += patterns('astakos.im.api',
|
85 | 1ae97c83 | Sofia Papagiannaki | url(r'^authenticate/?$', 'authenticate'), |
86 | 1ae97c83 | Sofia Papagiannaki | url(r'^get_services/?$', 'get_services'), |
87 | 1ae97c83 | Sofia Papagiannaki | url(r'^get_menu/?$', 'get_menu'), |
88 | 64cd4730 | Antony Chazapis | ) |