# Path: competencies/views.py
# def index(request):
# def no_edit_permission(request, school_id):
# def organizations(request):
# def organization(request, organization_id):
# def sa_summary(request, sa_id):
# def sa_summary_pdf(request, sa_id):
# def organization_admin_summary(request, organization_id):
# def organization_admin_edit(request, organization_id):
# def fork(request, organization_id):
# def edit_sa_summary(request, sa_id):
# def edit_sa_summary_order(request, sa_id):
# def move_element(request, element_type, element_id, direction, sa_id):
# def delete_element(request, element_type, element_id):
# def get_sda_ca_eu_elements(subject_area, kwargs):
# def process_form(request, instance, element_type, privacy_changed):
# def generate_form(instance, element_type):
# def new_sa(request, org_id):
# def new_sda(request, sa_id):
# def new_ca(request, sa_id):
# def new_sda_ca(request, sda_id):
# def new_eu(request, ca_id):
# def get_visibility_filter(user, organization):
# def has_edit_permission(user, organization):
# def check_parent_order(child_object, correct_order):
# def get_parent_order(child_object):
# def set_parent_order(child_object, order):
# def new_organization(request):


from django.conf.urls import patterns, url
from competencies import views


urlpatterns = patterns('',
    # My urls

    # --- Open Competencies home page ---

    url(r'^$', views.index, name='index'),


    # --- Simple views of competency system; no opportunity to modify system ---

    # organizations: List of all organizations the user owns, can edit,
    #  and all public organizations.
    url(r'^organizations/$', views.organizations, name='organizations'),

    # organization: Detail view for an organization, showing subject areas.
    url(r'^organizations/(?P<organization_id>\d+)/$', views.organization, name='organization'),

    # sa_summary/id: Show a GSP-style summary for a given subject area.
    url(r'^sa_summary/(?P<sa_id>\d+)/$', views.sa_summary, name='sa_summary'),

    # --- PDF generating pages ---
    url(r'^sa_summary_pdf/(?P<sa_id>\d+)/$', views.sa_summary_pdf, name='sa_summary_pdf'),


    # --- Edit system pages ---

    # edit_sa_summary/id: Edit a summary for a given subject area.

# Path: competencies/views.py
# def index(request):
# def no_edit_permission(request, school_id):
# def organizations(request):
# def organization(request, organization_id):
# def sa_summary(request, sa_id):
# def sa_summary_pdf(request, sa_id):
# def organization_admin_summary(request, organization_id):
# def organization_admin_edit(request, organization_id):
# def fork(request, organization_id):
# def edit_sa_summary(request, sa_id):
# def edit_sa_summary_order(request, sa_id):
# def move_element(request, element_type, element_id, direction, sa_id):
# def delete_element(request, element_type, element_id):
# def get_sda_ca_eu_elements(subject_area, kwargs):
# def process_form(request, instance, element_type, privacy_changed):
# def generate_form(instance, element_type):
# def new_sa(request, org_id):
# def new_sda(request, sa_id):
# def new_ca(request, sa_id):
# def new_sda_ca(request, sda_id):
# def new_eu(request, ca_id):
# def get_visibility_filter(user, organization):
# def has_edit_permission(user, organization):
# def check_parent_order(child_object, correct_order):
# def get_parent_order(child_object):
# def set_parent_order(child_object, order):
# def new_organization(request):


# Path: competencies/urls.py
from django.conf.urls import patterns, url
from competencies import views



urlpatterns = patterns('',
    # My urls

    # --- Open Competencies home page ---

    url(r'^$', views.index, name='index'),


    # --- Simple views of competency system; no opportunity to modify system ---

    # organizations: List of all organizations the user owns, can edit,
    #  and all public organizations.
    url(r'^organizations/$', views.organizations, name='organizations'),

    # organization: Detail view for an organization, showing subject areas.
    url(r'^organizations/(?P<organization_id>\d+)/$', views.organization, name='organization'),

    # sa_summary/id: Show a GSP-style summary for a given subject area.
    url(r'^sa_summary/(?P<sa_id>\d+)/$', views.sa_summary, name='sa_summary'),

    # --- PDF generating pages ---
    url(r'^sa_summary_pdf/(?P<sa_id>\d+)/$', views.sa_summary_pdf, name='sa_summary_pdf'),


    # --- Edit system pages ---

    # edit_sa_summary/id: Edit a summary for a given subject area.

    url(r'^edit_sa_summary/(?P<sa_id>\d+)/$', views.edit_sa_summary, name='edit_sa_summary'),                       