summaryrefslogtreecommitdiff
path: root/ishtar/ishtar_base/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar/ishtar_base/urls.py')
-rw-r--r--ishtar/ishtar_base/urls.py84
1 files changed, 47 insertions, 37 deletions
diff --git a/ishtar/ishtar_base/urls.py b/ishtar/ishtar_base/urls.py
index b8ce788b8..60bee05b6 100644
--- a/ishtar/ishtar_base/urls.py
+++ b/ishtar/ishtar_base/urls.py
@@ -25,13 +25,17 @@ import forms_main as ishtar_forms
urlpatterns, actions = [], []
+
+# forms
urlpatterns = patterns('',
+ # General
url(BASE_URL + r'person_creation/(?P<step>.+)$',
ishtar_forms.person_creation_wizard, name='person_creation'),
url(BASE_URL + r'person_modification/(?P<step>.+)$',
ishtar_forms.person_modification_wizard, name='person_modification'),
url(BASE_URL + r'account_management/(?P<step>.+)$',
ishtar_forms.account_management_wizard, name='account_management'),
+ # Archaelogical files
url(BASE_URL + r'file_search/(?P<step>.+)$',
ishtar_forms.file_search_wizard, name='file_search'),
url(BASE_URL + r'file_creation/(?P<step>.+)$',
@@ -49,6 +53,7 @@ urlpatterns = patterns('',
url(BASE_URL + r'file_administrativeactfile_deletion/(?P<step>.+)$',
ishtar_forms.file_administrativeactfile_deletion_wizard,
name='file_administrativeactfile_deletion'),
+ # Operations
url(BASE_URL + r'operation_search/(?P<step>.+)$',
ishtar_forms.operation_search_wizard, name='operation_search'),
url(BASE_URL + r'operation_creation/(?P<step>.+)$',
@@ -78,6 +83,7 @@ urlpatterns = patterns('',
url(BASE_URL + r'operation_source_deletion/(?P<step>.+)$',
ishtar_forms.operation_source_deletion_wizard,
name='operation_source_deletion'),
+ # Context records
url(BASE_URL + r'record_search/(?P<step>.+)$',
ishtar_forms.record_search_wizard, name='record_search'),
url(BASE_URL + r'record_creation/(?P<step>.+)$',
@@ -86,6 +92,7 @@ urlpatterns = patterns('',
ishtar_forms.record_modification_wizard, name='record_modification'),
url(BASE_URL + r'record_deletion/(?P<step>.+)$',
ishtar_forms.record_deletion_wizard, name='record_deletion'),
+ # Finds
url(BASE_URL + r'item_search/(?P<step>.+)$',
ishtar_forms.item_search_wizard, name='item_search'),
url(BASE_URL + r'item_creation/(?P<step>.+)$',
@@ -104,60 +111,63 @@ for section in menu.childs:
actions.append(menu_item.idx)
actions = r"|".join(actions)
+# other views
urlpatterns += patterns('ishtar.ishtar_base.views',
+ # General
url(BASE_URL + r'(?P<action_slug>' + actions + r')/$', 'action',
- name='action'),
+ name='action'),
+ url(BASE_URL + r'new-person/(?P<parent_name>.+)?/$',
+ 'new_person', name='new-person'),
url(BASE_URL + r'autocomplete-person/([0-9_]+)?$', 'autocomplete_person',
- name='autocomplete-person'),
+ name='autocomplete-person'),
url(BASE_URL + r'autocomplete-town/$', 'autocomplete_town',
- name='autocomplete-town'),
+ name='autocomplete-town'),
+ url(BASE_URL + r'new-author/(?P<parent_name>.+)?/$',
+ 'new_author', name='new-author'),
url(BASE_URL + r'autocomplete-author/$', 'autocomplete_author',
- name='autocomplete-author'),
+ name='autocomplete-author'),
+ url(BASE_URL + r'new-organization/(?P<parent_name>.+)?/$',
+ 'new_organization', name='new-organization'),
url(BASE_URL + r'autocomplete-organization/([0-9_]+)?$',
- 'autocomplete_organization',
- name='autocomplete-organization'),
- url(BASE_URL + r'autocomplete-file/$', 'autocomplete_file',
- name='autocomplete-file'),
+ 'autocomplete_organization', name='autocomplete-organization'),
+ url(BASE_URL + r'new-warehouse/(?P<parent_name>.+)?/$',
+ 'new_warehouse', name='new-warehouse'),
url(BASE_URL + r'autocomplete-warehouse/$', 'autocomplete_warehouse',
- name='autocomplete-warehouse'),
+ name='autocomplete-warehouse'),
+ # Archaelogical files
+ url(BASE_URL + r'autocomplete-file/$', 'autocomplete_file',
+ name='autocomplete-file'),
url(BASE_URL + r'get-file/(?P<type>.+)?$', 'get_file',
- name='get-file'),
+ name='get-file'),
+ url(BASE_URL + r'get-administrativeactfile/(?P<type>.+)?$',
+ 'get_administrativeactfile', name='get-administrativeactfile'),
url(BASE_URL + r'show-file/(?P<pk>.+)?/(?P<type>.+)?$', 'show_file',
- name='show-file'),
+ name='show-file'),
url(BASE_URL + r'show-historized-file/(?P<pk>.+)?/(?P<date>.+)?$',
- 'show_file', name='show-historized-file'),
+ 'show_file', name='show-historized-file'),
url(BASE_URL + r'revert-file/(?P<pk>.+)/(?P<date>.+)$',
- 'revert_file', name='revert-file'),
+ 'revert_file', name='revert-file'),
+ # Operations
url(BASE_URL + r'autocomplete-operation/$', 'autocomplete_operation',
- name='autocomplete-operation'),
+ name='autocomplete-operation'),
url(BASE_URL + r'get-operation/(?P<type>.+)?$', 'get_operation',
- name='get-operation'),
+ name='get-operation'),
url(BASE_URL + r'revert-operation/(?P<pk>.+)/(?P<date>.+)$',
- 'revert_operation', name='revert-operation'),
+ 'revert_operation', name='revert-operation'),
url(BASE_URL + r'show-operation/(?P<pk>.+)?/(?P<type>.+)?$',
- 'show_operation',
- name='show-operation'),
- url(BASE_URL + r'show-contextrecord/(?P<pk>.+)?/(?P<type>.+)?$',
- 'show_contextrecord',
- name='show-contextrecord'),
- url(BASE_URL + r'update-current-item/$', 'update_current_item',
- name='update-current-item'),
- url(BASE_URL + r'get-administrativeactfile/(?P<type>.+)?$',
- 'get_administrativeactfile', name='get-administrativeactfile'),
+ 'show_operation', name='show-operation'),
url(BASE_URL + r'get-administrativeactop/(?P<type>.+)?$',
- 'get_administrativeactop', name='get-administrativeactop'),
+ 'get_administrativeactop', name='get-administrativeactop'),
+ # Context records
+ url(BASE_URL + r'show-contextrecord/(?P<pk>.+)?/(?P<type>.+)?$',
+ 'show_contextrecord', name='show-contextrecord'),
url(BASE_URL + r'get-contextrecord/(?P<type>.+)?$', 'get_contextrecord',
- name='get-contextrecord'),
+ name='get-contextrecord'),
+ # Finds
+ url(BASE_URL + r'update-current-item/$', 'update_current_item',
+ name='update-current-item'),
url(BASE_URL + r'get-item/(?P<type>.+)?$', 'get_archaeologicalitem',
- name='get-item'),
- url(BASE_URL + r'new-warehouse/(?P<parent_name>.+)?/$',
- 'new_warehouse', name='new-warehouse'),
- url(BASE_URL + r'new-person/(?P<parent_name>.+)?/$',
- 'new_person', name='new-person'),
- url(BASE_URL + r'new-author/(?P<parent_name>.+)?/$',
- 'new_author', name='new-author'),
- url(BASE_URL + r'new-organization/(?P<parent_name>.+)?/$',
- 'new_organization', name='new-organization'),
+ name='get-item'),
url(BASE_URL + r'get-operationsource/(?P<type>.+)?$',
- 'get_operationsource', name='get-operationsource'),
+ 'get_operationsource', name='get-operationsource'),
)