# 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
    # fork/id: Fork an existing school into the current school.
    url(r'^fork/(?P<organization_id>\d+)/$', views.fork, name='fork'),

    # --- New element pages ---

    # new_organization: Create a new organization.
    url(r'^new_organization/$', views.new_organization, name='new_organization'),

    # new_sa: Create a new sa, for a specific org.
    url(r'^new_sa/(?P<org_id>\d+)/$', views.new_sa, name='new_sa'),

    # new_sda: Create a new sda, for a specific subject area.
    url(r'^new_sda/(?P<sa_id>\d+)/$', views.new_sda, name='new_sda'),

    # new_ca: Create a new competency area, for a specific general subject area.
    url(r'^new_ca/(?P<sa_id>\d+)/$', views.new_ca, name='new_ca'),

    # new_sda_ca: Create a new competency area, for a specific subdiscipline area.
    url(r'^new_sda_ca/(?P<sda_id>\d+)/$', views.new_sda_ca, name='new_sda_ca'),

    # new_eu: Create a new essential understanding, for a specific ca.
    url(r'^new_eu/(?P<ca_id>\d+)/$', views.new_eu, name='new_eu'),
                       

    # --- Authorization pages ---

    # no_edit_permission: Message that user does not have permission required to edit current elements.
    url(r'^no_edit_permission/(?P<school_id>\d+)/$', views.no_edit_permission, name='no_edit_permission'),



# 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

    # fork/id: Fork an existing school into the current school.
    url(r'^fork/(?P<organization_id>\d+)/$', views.fork, name='fork'),

    # --- New element pages ---

    # new_organization: Create a new organization.
    url(r'^new_organization/$', views.new_organization, name='new_organization'),

    # new_sa: Create a new sa, for a specific org.
    url(r'^new_sa/(?P<org_id>\d+)/$', views.new_sa, name='new_sa'),

    # new_sda: Create a new sda, for a specific subject area.
    url(r'^new_sda/(?P<sa_id>\d+)/$', views.new_sda, name='new_sda'),

    # new_ca: Create a new competency area, for a specific general subject area.
    url(r'^new_ca/(?P<sa_id>\d+)/$', views.new_ca, name='new_ca'),

    # new_sda_ca: Create a new competency area, for a specific subdiscipline area.
    url(r'^new_sda_ca/(?P<sda_id>\d+)/$', views.new_sda_ca, name='new_sda_ca'),

    # new_eu: Create a new essential understanding, for a specific ca.
    url(r'^new_eu/(?P<ca_id>\d+)/$', views.new_eu, name='new_eu'),
                       

    # --- Authorization pages ---

    # no_edit_permission: Message that user does not have permission required to edit current elements.
    url(r'^no_edit_permission/(?P<school_id>\d+)/$', views.no_edit_permission, name='no_edit_permission'),



)