# -*- coding: utf-8 -*- from django.conf.urls.defaults import patterns, url from ecm.core.views.dispatcher import ECMView urlpatterns = patterns( '', # Entry point url(r'^$', ECMView.as_view(action='detail'), {'slugs': 'ecm'}), # Contents url(r'(?P<slugs>.*)/view$', ECMView.as_view(action='detail'), name="content_detail"), url(r'(?P<slugs>.*)/edit$', ECMView.as_view(action='update'), name="content_edit"), url(r'(?P<slugs>.*)/delete$', ECMView.as_view(action='delete'), name="content_delete"), url(r'(?P<slugs>.*)/create/(?P<content_type>\w+)/$', ECMView.as_view(action='create'), name="content_create"), url(r'(?P<slugs>.*)/$', ECMView.as_view(action='detail'), name="content_detail"),
from ecm.core.views.dispatcher import ECMView urlpatterns = patterns( '', url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'admin/login.html'}, name='login'), url(r'^logout/$', 'django.contrib.auth.views.logout', name='logout'), url(r'(?P<slugs>.*)/setup-permissions$', ECMView.as_view(action='setup_permissions'), name="state_setup_permissions"), url(r'users/$', ListView.as_view( model=User, template_name="ecm/users/list.html"), name="users_list"), url(r'groups/$', ListView.as_view( model=Group, template_name="ecm/groups/list.html"), name="groups_list"), # Security Management url(r'permissions/$', PermissionListView.as_view(), name="permissions_list"), )