# Path: mineid/apps/views.py
# class AppList(AppViewMixin, AppUserObjectsMixin, ListView):
#     template_name = 'mineid/apps/list.html'
# 
# class AppCreate(AppViewMixin, AppUserObjectMixin, AppFormMixin, CreateView):
#     template_name = 'mineid/apps/create.html'
#     form_valid_message = _('Application created')
# 
#     def get_initial(self):
#         initial = super(AppCreate, self).get_initial()
#         initial['url'] = 'http://'
#         initial['redirect_uri'] = 'http://'
#         return initial
# 
# class AppUpdate(AppViewMixin, AppUserObjectsMixin, AppFormMixin, UpdateView):
#     template_name = 'mineid/apps/update.html'
#     form_valid_message = _('Application updated')
# 
# class AppDelete(AppViewMixin, AppUserObjectsMixin, AppDeleteMixin, DeleteView):
#     template_name = 'mineid/apps/delete.html'
#     form_valid_message = _('Application deleted')
# 
# class AppCredentials(AppViewMixin, AppUserObjectsMixin, DetailView):
#     template_name = 'mineid/apps/credentials.html'


from django.conf.urls import patterns, include, url
from .views import AppList, AppCreate, AppUpdate, AppDelete, AppCredentials


urlpatterns = patterns(
    '',
    url(r'^$', AppList.as_view(), name='list'),
    url(r'^create/$', AppCreate.as_view(), name='create'),
    url(r'^update/(?P<pk>\d+)/$', AppUpdate.as_view(), name='update'),
    url(r'^delete/(?P<pk>\d+)/$', AppDelete.as_view(), name='delete'),
    url(r'^credentials/(?P<pk>\d+)/$', AppCredentials.as_view(),

# Path: mineid/apps/views.py
# class AppList(AppViewMixin, AppUserObjectsMixin, ListView):
#     template_name = 'mineid/apps/list.html'
# 
# class AppCreate(AppViewMixin, AppUserObjectMixin, AppFormMixin, CreateView):
#     template_name = 'mineid/apps/create.html'
#     form_valid_message = _('Application created')
# 
#     def get_initial(self):
#         initial = super(AppCreate, self).get_initial()
#         initial['url'] = 'http://'
#         initial['redirect_uri'] = 'http://'
#         return initial
# 
# class AppUpdate(AppViewMixin, AppUserObjectsMixin, AppFormMixin, UpdateView):
#     template_name = 'mineid/apps/update.html'
#     form_valid_message = _('Application updated')
# 
# class AppDelete(AppViewMixin, AppUserObjectsMixin, AppDeleteMixin, DeleteView):
#     template_name = 'mineid/apps/delete.html'
#     form_valid_message = _('Application deleted')
# 
# class AppCredentials(AppViewMixin, AppUserObjectsMixin, DetailView):
#     template_name = 'mineid/apps/credentials.html'


# Path: mineid/apps/urls.py
from django.conf.urls import patterns, include, url
from .views import AppList, AppCreate, AppUpdate, AppDelete, AppCredentials



urlpatterns = patterns(
    '',
    url(r'^$', AppList.as_view(), name='list'),
    url(r'^create/$', AppCreate.as_view(), name='create'),
    url(r'^update/(?P<pk>\d+)/$', AppUpdate.as_view(), name='update'),
    url(r'^delete/(?P<pk>\d+)/$', AppDelete.as_view(), name='delete'),
    url(r'^credentials/(?P<pk>\d+)/$', AppCredentials.as_view(),

        name='credentials'),