from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^abort_task/(?P<task_pk>\d+)/?$', 'ocradmin.batch.views.abort_task'),
    (r'^abort_batch/(?P<batch_pk>\d+)/?$', 'ocradmin.batch.views.abort_batch'),
	(r'^create/?$', 'ocradmin.batch.views.create'),
	(r'^latest/?$', 'ocradmin.batch.views.latest'),
	(r'^list/?$', 'ocradmin.batch.views.list'),
	(r'^new/?$', 'ocradmin.batch.views.new'),
    (r'^results/(?P<batch_pk>\d+)/?$', 'ocradmin.batch.views.results'),
    (r'^results/(?P<batch_pk>\d+)/(?P<page_index>\d+)/?$', 'ocradmin.batch.views.page_results'),
    (r'^save/(?P<pk>\d+)/(?P<page_index>\d+)/?$', 'ocradmin.batch.views.save_page_data'),
    (r'^retry/(?P<batch_pk>\d+)/?$', 'ocradmin.batch.views.retry'),
    (r'^retry_errored/(?P<batch_pk>\d+)/?$', 'ocradmin.batch.views.retry_errored'),
    (r'^retry_task/(?P<task_pk>\d+)/?$', 'ocradmin.batch.views.retry_task'),
    (r'^show/(?P<batch_pk>\d+)/?$', 'ocradmin.batch.views.show'),
	(r'^spellcheck/?$', 'ocradmin.batch.views.spellcheck'),
    (r'^submit_viewer_binarization/(?P<batch_pk>\d+)/?$',
        'ocradmin.batch.views.submit_viewer_binarization'),
    (r'^viewer_binarization_results/(?P<task_id>[^\/]+)/?$',
        'ocradmin.batch.views.viewer_binarization_results'),
    (r'^transcript/(?P<batch_pk>\d+)/?$', 'ocradmin.batch.views.transcript'),
    (r'^test/?$', 'ocradmin.batch.views.test'),
	(r'^upload_files/?$', 'ocradmin.batch.views.upload_files'),
)

from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^abort_task/(?P<task_pk>\d+)/?$', 'ocradmin.batch.views.abort_task'),
    (r'^abort_batch/(?P<batch_pk>\d+)/?$', 'ocradmin.batch.views.abort_batch'),
	(r'^create/?$', 'ocradmin.batch.views.create'),
	(r'^latest/?$', 'ocradmin.batch.views.latest'),
	(r'^list/?$', 'ocradmin.batch.views.list'),
	(r'^new/?$', 'ocradmin.batch.views.new'),
    (r'^results/(?P<batch_pk>\d+)/?$', 'ocradmin.batch.views.results'),
    (r'^results/(?P<batch_pk>\d+)/(?P<page_index>\d+)/?$', 'ocradmin.batch.views.page_results'),
    (r'^save/(?P<batch_pk>\d+)/(?P<page_index>\d+)/?$', 'ocradmin.batch.views.save_page_data'),
    (r'^retry/(?P<batch_pk>\d+)/?$', 'ocradmin.batch.views.retry'),
    (r'^retry_errored/(?P<batch_pk>\d+)/?$', 'ocradmin.batch.views.retry_errored'),
    (r'^retry_task/(?P<task_pk>\d+)/?$', 'ocradmin.batch.views.retry_task'),
    (r'^show/(?P<batch_pk>\d+)/?$', 'ocradmin.batch.views.show'),
	(r'^spellcheck/?$', 'ocradmin.batch.views.spellcheck'),
    (r'^submit_viewer_binarization/(?P<batch_pk>\d+)/?$',
        'ocradmin.batch.views.submit_viewer_binarization'),
    (r'^viewer_binarization_results/(?P<task_id>[^\/]+)/?$',
        'ocradmin.batch.views.viewer_binarization_results'),
    (r'^transcript/(?P<batch_pk>\d+)/?$', 'ocradmin.batch.views.transcript'),
    (r'^test/?$', 'ocradmin.batch.views.test'),
	(r'^upload_files/?$', 'ocradmin.batch.views.upload_files'),
)

Fix sending the save transcript fun the wrong named parameter