root / astakos / im / urls.py @ 13858d75
History | View | Annotate | Download (3.8 kB)
1 | aba1e498 | Antony Chazapis | # Copyright 2011-2012 GRNET S.A. All rights reserved.
|
---|---|---|---|
2 | 64cd4730 | Antony Chazapis | #
|
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 | 64cd4730 | Antony Chazapis | #
|
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 | 64cd4730 | Antony Chazapis | #
|
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 | 64cd4730 | Antony Chazapis | #
|
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 | 64cd4730 | Antony Chazapis | #
|
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 | 64cd4730 | Antony Chazapis | from django.conf import settings |
35 | 794852f2 | Sofia Papagiannaki | from django.conf.urls.defaults import patterns, include, url |
36 | 890b0eaf | Sofia Papagiannaki | from django.core.urlresolvers import reverse |
37 | 64cd4730 | Antony Chazapis | |
38 | e2125441 | Sofia Papagiannaki | from astakos.im.forms import ExtendedPasswordResetForm |
39 | e2125441 | Sofia Papagiannaki | |
40 | 64cd4730 | Antony Chazapis | urlpatterns = patterns('astakos.im.views',
|
41 | 794852f2 | Sofia Papagiannaki | url(r'^$', 'index'), |
42 | 794852f2 | Sofia Papagiannaki | url(r'^login/?$', 'index'), |
43 | 794852f2 | Sofia Papagiannaki | url(r'^profile/?$', 'edit_profile'), |
44 | 794852f2 | Sofia Papagiannaki | url(r'^feedback/?$', 'send_feedback'), |
45 | 794852f2 | Sofia Papagiannaki | url(r'^signup/?$', 'signup'), |
46 | a196eb7e | Sofia Papagiannaki | url(r'^user_logout/?$', 'user_logout'), |
47 | 794852f2 | Sofia Papagiannaki | url(r'^admin/', include('astakos.im.admin.urls')), |
48 | 890b0eaf | Sofia Papagiannaki | ) |
49 | 890b0eaf | Sofia Papagiannaki | |
50 | 890b0eaf | Sofia Papagiannaki | urlpatterns += patterns('django.contrib.auth.views',
|
51 | a196eb7e | Sofia Papagiannaki | url(r'^logout/?$', 'logout') |
52 | 64cd4730 | Antony Chazapis | ) |
53 | 64cd4730 | Antony Chazapis | |
54 | 64cd4730 | Antony Chazapis | urlpatterns += patterns('astakos.im.target',
|
55 | a196eb7e | Sofia Papagiannaki | url(r'^login/redirect/?$', 'redirect.login') |
56 | 64cd4730 | Antony Chazapis | ) |
57 | 64cd4730 | Antony Chazapis | |
58 | 64cd4730 | Antony Chazapis | urlpatterns += patterns('',
|
59 | 794852f2 | Sofia Papagiannaki | url(r'^static/(?P<path>.*)$', 'django.views.static.serve', |
60 | 64cd4730 | Antony Chazapis | {'document_root': settings.PROJECT_PATH + '/im/static'}) |
61 | 64cd4730 | Antony Chazapis | ) |
62 | 64cd4730 | Antony Chazapis | |
63 | 64cd4730 | Antony Chazapis | if 'local' in settings.IM_MODULES: |
64 | 64cd4730 | Antony Chazapis | urlpatterns += patterns('astakos.im.target',
|
65 | 794852f2 | Sofia Papagiannaki | url(r'^local/?$', 'local.login'), |
66 | 794852f2 | Sofia Papagiannaki | url(r'^local/activate/?$', 'local.activate'), |
67 | 890b0eaf | Sofia Papagiannaki | ) |
68 | 890b0eaf | Sofia Papagiannaki | urlpatterns += patterns('django.contrib.auth.views',
|
69 | 794852f2 | Sofia Papagiannaki | url(r'^local/password_reset/?$', 'password_reset', |
70 | e2125441 | Sofia Papagiannaki | {'email_template_name':'registration/password_email.txt', |
71 | e2125441 | Sofia Papagiannaki | 'password_reset_form':ExtendedPasswordResetForm}),
|
72 | 794852f2 | Sofia Papagiannaki | url(r'^local/password_reset_done/?$', 'password_reset_done'), |
73 | 794852f2 | Sofia Papagiannaki | url(r'^local/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
|
74 | 890b0eaf | Sofia Papagiannaki | 'password_reset_confirm'),
|
75 | a196eb7e | Sofia Papagiannaki | url(r'^local/password/reset/complete/$', 'password_reset_complete'), |
76 | a196eb7e | Sofia Papagiannaki | url(r'^password/?$', 'password_change', {'post_change_redirect':'profile'}) |
77 | 64cd4730 | Antony Chazapis | ) |
78 | 64cd4730 | Antony Chazapis | |
79 | 64cd4730 | Antony Chazapis | if settings.INVITATIONS_ENABLED:
|
80 | 64cd4730 | Antony Chazapis | urlpatterns += patterns('astakos.im.views',
|
81 | 794852f2 | Sofia Papagiannaki | url(r'^invite/?$', 'invite'), |
82 | 64cd4730 | Antony Chazapis | ) |
83 | 824d1af9 | Sofia Papagiannaki | urlpatterns += patterns('astakos.im.target',
|
84 | 794852f2 | Sofia Papagiannaki | url(r'^login/invitation/?$', 'invitation.login') |
85 | 824d1af9 | Sofia Papagiannaki | ) |
86 | 64cd4730 | Antony Chazapis | |
87 | 64cd4730 | Antony Chazapis | if 'shibboleth' in settings.IM_MODULES: |
88 | 64cd4730 | Antony Chazapis | urlpatterns += patterns('astakos.im.target',
|
89 | 794852f2 | Sofia Papagiannaki | url(r'^login/shibboleth/?$', 'shibboleth.login') |
90 | 64cd4730 | Antony Chazapis | ) |
91 | 64cd4730 | Antony Chazapis | |
92 | 64cd4730 | Antony Chazapis | if 'twitter' in settings.IM_MODULES: |
93 | 64cd4730 | Antony Chazapis | urlpatterns += patterns('astakos.im.target',
|
94 | 794852f2 | Sofia Papagiannaki | url(r'^login/twitter/?$', 'twitter.login'), |
95 | 794852f2 | Sofia Papagiannaki | url(r'^login/twitter/authenticated/?$', 'twitter.authenticated') |
96 | 64cd4730 | Antony Chazapis | ) |
97 | 64cd4730 | Antony Chazapis | |
98 | 64cd4730 | Antony Chazapis | urlpatterns += patterns('astakos.im.api',
|
99 | 794852f2 | Sofia Papagiannaki | url(r'^authenticate/?$', 'authenticate') |
100 | 64cd4730 | Antony Chazapis | ) |
101 | 64cd4730 | Antony Chazapis |