web/ldt/ldt_utils/urls.py
author ymh <ymh.work@gmail.com>
Mon, 13 Dec 2010 23:55:19 +0100
changeset 22 83b28fc0d731
parent 9 22ab430e9b64
permissions -rw-r--r--
improve on ldt test framework start migration for text test
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     1
from django.conf.urls.defaults import *
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     2
from ldt.management import test_ldt
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     3
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     4
# Uncomment the next two lines to enable the admin:
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     5
# from django.contrib import admin
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     6
# admin.autodiscover()
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     7
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     8
urlpatterns = patterns('ldt.ldt_utils',
9
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
     9
    url(r'^searchInit/(?P<field>.*)/(?P<query>.*)$', 'views.searchInit'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    10
    url(r'^searchForm/$', 'views.searchForm'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    11
    url(r'^search/$', 'views.searchIndex'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    12
    url(r'^search/(?P<field>.*)/(?P<query>.*)$', 'views.searchIndexGet'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    13
    url(r'^searchLdt/(?P<field>.*)/(?P<query>.*)$', 'views.searchLdt'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    14
    url(r'^searchSeg/(?P<field>.*)/(?P<query>.*)$', 'views.searchSegments'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    15
    url(r'^index/(?P<url>.*)$', 'views.index'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    16
    url(r'^init/(?P<method>.*)/(?P<url>.*)$', 'views.init', name='ldt_init'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    17
    url(r'^ldt/(?P<url>.*)$', 'views.ldt'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    18
    url(r'^search/loading/$', 'views.loading'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    19
    url(r'^create/(?P<iri_id>.*)$', 'views.create_project'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    20
    url(r'^copy/(?P<ldt_id>.*)$', 'views.copy_project'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    21
    url(r'^update/(?P<ldt_id>.*)$', 'views.update_project'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    22
    url(r'^cljson/id/(?P<id>.*)$', 'views.project_json_id'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    23
    url(r'^cljson/externalid/(?P<id>.*)$', 'views.project_json_externalid'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    24
    url(r'^rdf/id/(?P<ldt_id>.*)$', 'views.project_annotations_rdf'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    25
    url(r'^/?$', "views.workspace", name="root-view"),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    26
    url(r'^filterprojects/_(?P<filter>[\w\%\_\-\+]*?)/(?P<is_owner>true|false)/(?P<status>\d)$', "views.projectsfilter", ),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    27
    url(r'^filtercontents/_(?P<filter>[\w\%\_\-\+]*?)/$', "views.contentsfilter", ),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    28
    (r'^embedpopup/?$', "views.popup_embed"),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    29
)
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    30
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    31
urlpatterns += patterns('',
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    32
    url('^jsi18n','django.views.i18n.javascript_catalog', name='jsi18n'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    33
)
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    34
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    35
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    36
if test_ldt():
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    37
    urlpatterns += patterns('ldt.ldt_utils',
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    38
        url(r'^space/content/$', 'views.list_content'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    39
        url(r'^space/content/create/$', 'views.write_content'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    40
        url(r'^space/content/update/(?P<iri_id>[\w-]+)$', 'views.write_content'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    41
        url(r'^space/ldt/$', 'views.list_ldt'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    42
        url(r'^space/ldt/indexproject/(?P<id>.*)$', 'views.indexProject'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    43
        url(r'^space/ldt/init/(?P<method>.*)/(?P<url>.+)$', 'views.init', name='space_ldt_init'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    44
        url(r'^space/ldt/project/(?P<id>.*)$', 'views.ldtProject'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    45
        url(r'^space/ldt/create/$', 'views.create_ldt_view'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    46
        url(r'^space/ldt/created_done/$', 'views.created_ldt'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    47
        url(r'^space/ldt/save/$', 'views.save_ldtProject'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    48
        url(r'^space/ldt/publish/(?P<id>[\w-]*)(?:/(?P<redirect>true|false))?$', 'views.publish'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    49
        url(r'^space/ldt/unpublish/(?P<id>[\w-]*)(?:/(?P<redirect>true|false))?$', 'views.unpublish'),
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    50
22ab430e9b64 Corrections on models and general structure
wakimd
parents: 2
diff changeset
    51
)