1 # -*- coding: utf-8 -*-
3 # portal/urls.py: URL mappings for the portal application
4 # This file is part of the Manifold project.
7 # Jordan Augé <jordan.auge@lip6.fr>
8 # Copyright 2013, UPMC Sorbonne Universités / LIP6
10 # This program is free software; you can redistribute it and/or modify it under
11 # the terms of the GNU General Public License as published by the Free Software
12 # Foundation; either version 3, or (at your option) any later version.
14 # This program is distributed in the hope that it will be useful, but WITHOUT
15 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
19 # You should have received a copy of the GNU General Public License along with
20 # this program; see the file COPYING. If not, write to the Free Software
21 # Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 from django.conf.urls import patterns, include, url
24 from portal import views
25 from portal.views import DashboardView, PresViewView
26 from portal.views import DashboardView, PresViewView, PlatformsView, PlatformView
27 from portal.util import TemplateView
29 # DEPRECATED #named_register_forms = (
30 # DEPRECATED # ("step1", RegisterUserForm),
31 # DEPRECATED # ("step2", RegisterUserStep2Form)
34 # DEPRECATED #register_wizard = RegisterUserWizardView.as_view(named_register_forms,
35 # DEPRECATED # url_name="register_wizard_step")
37 urlpatterns = patterns('',
39 #url(r'^user/register/?$', UserRegisterView.as_view(), name='user_register'),
40 url(r'^user/register/complete/$',
41 TemplateView.as_view(template_name='user_register_complete.html'),
42 name='user_register_complete'),
44 #url(r'^user/validate/?$', UserValidateView.as_view(), name='user_validate'),
45 url(r'^dashboard/?$', DashboardView.as_view(), name='dashboard'),
46 #url(r'^my_account/?$', MyAccountView.as_view(), name='my_account'),
47 url(r'^account/?$', views.my_account),
48 url(r'^platforms/?$', PlatformsView.as_view(), name='platforms'),
49 #url(r'^portal/platform/?$', PlatformView.platform_view(), name='platform'),
50 url(r'^platform/(?P<platformname>[\w\.]+)/?$', PlatformView.as_view(), name='platform'),
51 url(r'^acc_process/?$', views.acc_process),
52 url(r'^register/?$', views.register_4m_f4f),
53 #url(r'^reg_process/?$', views.reg_4m_f4f_process),
54 url(r'^contact/?$', views.contact),
56 url(r'^slice_request/?$', views.slice_request),
58 url(r'^pres_view/?$', PresViewView.as_view(), name='pres_view'),
59 (r'^methods/(?P<type>\w+)/?$', 'portal.views.pres_view_methods'),
60 (r'^animation/(?P<constraints>[^/]+)/(?P<id>\w+)/?$', 'portal.views.pres_view_animation'),
61 (r'^static/(?P<constraints>[^/]+)/(?P<id>\w+)/?$', 'portal.views.pres_view_static'),
62 #url(r'^slice/request/?$', views.slice_request, name='slice_request'),
64 #url(r'^slice/validate/?$', views.slice_validate, name='slice_validate'),
66 # (r'^accounts/', include('registration.backends.default.urls')),
69 # DEPRECATED # url(r'^$', views.index, name='index'),
70 # DEPRECATED # url(r"^registerwizard/(?P<step>[-\w]+)/$", register_wizard,
71 # DEPRECATED # name="register_wizard_step"),
72 # DEPRECATED # url(r"^registerwizard/$", register_wizard, name="register_wizard")