X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=blobdiff_plain;f=portal%2Furls.py;h=b23e0a2caed4c83a88ad149385b1695b23314599;hp=2d870d536330ec286d884605f6059f9525804772;hb=2f0ca597d050216c92df1ba6bf472d2c937fe7ef;hpb=b9a4e61ff89fea70d31a96e3f8238150fc5201bd diff --git a/portal/urls.py b/portal/urls.py index 2d870d53..b23e0a2c 100644 --- a/portal/urls.py +++ b/portal/urls.py @@ -20,10 +20,16 @@ # this program; see the file COPYING. If not, write to the Free Software # Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -from django.conf.urls import patterns, include, url -from portal import views -from portal.views import DashboardView, PresViewView, PlatformsView, PlatformView, ValidatePendingView # UserRegisterView, UserValidateView -from portal.util import TemplateView +from django.views.generic.base import TemplateView +from django.conf.urls import patterns, include, url + +from portal.views import PresViewView, ValidatePendingView +from portal.views import account_process, contact, slice_request, register_4m_f4f +from portal.platformsview import PlatformsView +from portal.platformview import PlatformView +from portal.dashboardview import DashboardView +from portal.accountview import AccountView + # DEPRECATED #named_register_forms = ( # DEPRECATED # ("step1", RegisterUserForm), @@ -43,18 +49,19 @@ urlpatterns = patterns('', #url(r'^user/validate/?$', UserValidateView.as_view(), name='user_validate'), url(r'^dashboard/?$', DashboardView.as_view(), name='dashboard'), #url(r'^my_account/?$', MyAccountView.as_view(), name='my_account'), - url(r'^account/?$', views.my_account), + url(r'^account/?$', AccountView.as_view(), name='account'), url(r'^platforms/?$', PlatformsView.as_view(), name='platforms'), - #url(r'^portal/platform/?$', PlatformView.platform_view(), name='platform'), url(r'^platform/(?P[\w\.]+)/?$', PlatformView.as_view(), name='platform'), - url(r'^account/acc_process/?$', views.acc_process), - url(r'^register/?$', views.register_4m_f4f), - #url(r'^reg_process/?$', views.reg_4m_f4f_process), - url(r'^contact/?$', views.contact), + url(r'^account/account_process/?$', account_process), + url(r'^register/?$', register_4m_f4f), + url(r'^contact/?$', contact), # Slice request - url(r'^slice_request/?$', views.slice_request), + url(r'^slice_request/?$', slice_request), # Validate pending requests url(r'^validate/?$', ValidatePendingView.as_view()), + # http://stackoverflow.com/questions/2360179/django-urls-how-to-pass-a-list-of-items-via-clean-urls + # (r'^validate_action/(?P[^/]+)/(?P\w+)/?$', 'portal.views.pres_view_static'), + (r'^validate_action(?P(?:/\w+)+)/?$', 'portal.actions.validate_action'), url(r'^pres_view/?$', PresViewView.as_view(), name='pres_view'), (r'^methods/(?P\w+)/?$', 'portal.views.pres_view_methods'),