from django.conf.urls import patterns, url urlpatterns = patterns( "servo.views.note", url(r'^$', 'list_notes', name="notes-list_notes"), url(r'^search/$', 'search', name="notes-search"), url(r'^find/$', 'find', name="notes-find"), url(r'^templates/$', 'templates'), url(r'^new/$', 'edit', name="notes-create"), url(r'^templates/(\d+)/$', 'templates', name='notes-template'), url(r'^render_template/$', 'render_template', name='notes-render_template'), url(r'^to/customer/(?P\d+)/new/$', 'edit', name="notes-create_to_customer"), url(r'^(?P\d+)/toggle/tag/(?P\d+)/$', 'toggle_tag', name="notes-toggle_tag"), url(r'^(?P\d+)/toggle/(?P[a-z]+)/$', 'toggle_flag', name="notes-toggle_flag"), url(r'^(?P\d+)/reply/$', 'edit', name="notes-reply"), url(r'^(?P\d+)/edit/$', 'edit', name="notes-edit"), url(r'^(?P\d+)/messages/$', 'list_messages', name="notes-messages"), url(r'^(?P\d+)/delete/$', 'delete_note', name='notes-delete_note'), url(r'^(?P\d+)/copy/$', 'copy', name='notes-copy'), url(r'^to/(?P.+)/new/$', 'edit', name="notes-create_with_recipient"), url(r'^to/(?P.+)/order/(?P\d+)/$', 'edit', name="notes-create_with_to_and_order"), url(r'^escalations/new/$', 'create_escalation', name="notes-create_escalation"), url(r'^(?P\w+)/$', 'list_notes', name="notes-list_notes"), url(r'^(?P\w+)/(?P\d+)/view/$', 'view_note', name="notes-view_note"), )