# Path: pttrack/decorators.py
# def provider_required(func):
#     return user_passes_test(provider_exists, login_url=reverse_lazy('new-provider'))(func)
# 
# def clintype_required(func):
#     return session_passes_test(clintype_set, fail_url=reverse_lazy('choose-clintype'))(func)
# 
# def provider_update_required(func):
#     return user_passes_test(provider_has_updated, login_url=reverse_lazy('provider-update'))(func)


from django.conf.urls import url
from django.views.generic import DetailView
from django.views.generic.base import TemplateView
from django.contrib.auth.decorators import login_required
from .decorators import provider_required, clintype_required, \
    provider_update_required
from . import models
from . import views
from __future__ import unicode_literals


# pylint: disable=I0011

unwrapped_urlpatterns = [  # pylint: disable=invalid-name
    url(r'^$',
        views.home_page,
        name="home"),
    url(r'^all/$',
        views.all_patients,

# Path: pttrack/decorators.py
# def provider_required(func):
#     return user_passes_test(provider_exists, login_url=reverse_lazy('new-provider'))(func)
# 
# def clintype_required(func):
#     return session_passes_test(clintype_set, fail_url=reverse_lazy('choose-clintype'))(func)
# 
# def provider_update_required(func):
#     return user_passes_test(provider_has_updated, login_url=reverse_lazy('provider-update'))(func)


# Path: pttrack/urls.py
from django.conf.urls import url
from django.views.generic import DetailView
from django.views.generic.base import TemplateView
from django.contrib.auth.decorators import login_required
from .decorators import provider_required, clintype_required, \
    provider_update_required
from . import models
from . import views

from __future__ import unicode_literals


# pylint: disable=I0011

unwrapped_urlpatterns = [  # pylint: disable=invalid-name
    url(r'^$',
        views.home_page,
        name="home"),
    url(r'^all/$',
        views.all_patients,

        name="all-patients"),