# Path: reviewer/views.py
# REDIS_CACHE_KEY = getattr(settings, 'REVIEWER_CACHE_KEY', 'default')
# FOCUS_MAX = getattr(settings, 'REVIEWER_FOCUS_MAX', 30)
# QUEUE_SIZE = getattr(settings, 'REVIEWER_QUEUE_SIZE', 12)
# def reviewgroup_auth(view_func):
#     def wrapped(request, organization, *args, **kw):
# def base(request):
# def save_review(request, organization, content_type, pk):
# def get_review_history(request, organization):
# def mark_focus(request, organization, content_type, pk):
# def _clear_old_focus(organization, max=FOCUS_MAX):
# def current_review_state(request, organization):
# def delete_review(request, organization, content_type, pk, id):


from django.conf.urls import include, url
from reviewer import views

urlpatterns = [
    url(r'^current/(?P<organization>[-.\w]+)/?$', views.current_review_state,
        name='reviewer_current'),
    url(r'^history/(?P<organization>[-.\w]+)/?$', views.get_review_history,
        name='reviewer_history'),
    url(r'^focus/(?P<organization>[-.\w]+)/(?P<content_type>\w+)/(?P<pk>\w+)/?$', views.mark_focus,
        name='reviewer_visit'),
    url(r'^(?P<organization>[-.\w]+)/(?P<content_type>\w+)/(?P<pk>\w+)/?$', views.save_review,
        name='reviewer_save'),
    url(r'^(?P<organization>[-.\w]+)/(?P<content_type>\w+)/(?P<pk>\w+)/(?P<id>\w+)/?$', views.delete_review,
        name='reviewer_delete'),

# Path: reviewer/views.py
# REDIS_CACHE_KEY = getattr(settings, 'REVIEWER_CACHE_KEY', 'default')
# FOCUS_MAX = getattr(settings, 'REVIEWER_FOCUS_MAX', 30)
# QUEUE_SIZE = getattr(settings, 'REVIEWER_QUEUE_SIZE', 12)
# def reviewgroup_auth(view_func):
#     def wrapped(request, organization, *args, **kw):
# def base(request):
# def save_review(request, organization, content_type, pk):
# def get_review_history(request, organization):
# def mark_focus(request, organization, content_type, pk):
# def _clear_old_focus(organization, max=FOCUS_MAX):
# def current_review_state(request, organization):
# def delete_review(request, organization, content_type, pk, id):


# Path: reviewer/urls.py
from django.conf.urls import include, url
from reviewer import views


urlpatterns = [
    url(r'^current/(?P<organization>[-.\w]+)/?$', views.current_review_state,
        name='reviewer_current'),
    url(r'^history/(?P<organization>[-.\w]+)/?$', views.get_review_history,
        name='reviewer_history'),
    url(r'^focus/(?P<organization>[-.\w]+)/(?P<content_type>\w+)/(?P<pk>\w+)/?$', views.mark_focus,
        name='reviewer_visit'),
    url(r'^(?P<organization>[-.\w]+)/(?P<content_type>\w+)/(?P<pk>\w+)/?$', views.save_review,
        name='reviewer_save'),
    url(r'^(?P<organization>[-.\w]+)/(?P<content_type>\w+)/(?P<pk>\w+)/(?P<id>\w+)/?$', views.delete_review,
        name='reviewer_delete'),

    url(r'^$', views.base,