def create_handlers_map():
 pipeline_handlers_map = []
 if pipeline:
  pipeline_handlers_map = pipeline.create_handlers_map(prefix='.*/pipeline')
 return (pipeline_handlers_map + [('.*/worker_callback', handlers.MapperWorkerCallbackHandler), ('.*/controller_callback', handlers.ControllerCallbackHandler), ('.*/kickoffjob_callback', handlers.KickOffJobHandler), ('.*/finalizejob_callback', handlers.FinalizeJobHandler), ('.*/command/start_job', handlers.StartJobHandler), ('.*/command/cleanup_job', handlers.CleanUpJobHandler), ('.*/command/abort_job', handlers.AbortJobHandler), ('.*/command/list_configs', status.ListConfigsHandler), ('.*/command/list_jobs', status.ListJobsHandler), ('.*/command/get_job_detail', status.GetJobDetailHandler), (STATIC_RE, status.ResourceHandler), ('.*', RedirectHandler)])

def create_handlers_map ( ) : pipeline_handlers_map = [ ] if pipeline : pipeline_handlers_map = pipeline . create_handlers_map ( prefix = '.*/pipeline' ) return ( pipeline_handlers_map + [ ( '.*/worker_callback' , handlers . MapperWorkerCallbackHandler ) , ( '.*/controller_callback' , handlers . ControllerCallbackHandler ) , ( '.*/kickoffjob_callback' , handlers . KickOffJobHandler ) , ( '.*/finalizejob_callback' , handlers . FinalizeJobHandler ) , ( '.*/command/start_job' , handlers . StartJobHandler ) , ( '.*/command/cleanup_job' , handlers . CleanUpJobHandler ) , ( '.*/command/abort_job' , handlers . AbortJobHandler ) , ( '.*/command/list_configs' , status . ListConfigsHandler ) , ( '.*/command/list_jobs' , status . ListJobsHandler ) , ( '.*/command/get_job_detail' , status . GetJobDetailHandler ) , ( STATIC_RE , status . ResourceHandler ) , ( '.*' , RedirectHandler ) ] )
create new handlers map .