diff options
author | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-06-12 16:34:14 +0530 |
---|---|---|
committer | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-06-12 16:34:14 +0530 |
commit | 59ffca7424f0f70d2a8fe641d2fb2d03cbf84575 (patch) | |
tree | 72e1ff80efd597c93cfca48857adc2c1290e5a71 /gnowsys-ndf/gnowsys_ndf/ndf/urls | |
parent | 485eeb9e705818983734f15c1bd21649ef3132fd (diff) | |
download | gnowsys-59ffca7424f0f70d2a8fe641d2fb2d03cbf84575.tar.gz |
New urls file moderation added
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/urls')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/urls/moderation.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/moderation.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/moderation.py new file mode 100644 index 0000000..801d147 --- /dev/null +++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/moderation.py @@ -0,0 +1,25 @@ +from django.conf.urls import patterns, url + +from django.views.generic import TemplateView + +urlpatterns = patterns('gnowsys_ndf.ndf.views.moderation', + + # simple moderation having data-review view with/without page no. + url(r'^[/]$', 'moderation', name='moderation'), + + # showing the status of under moderation object + url(r'^/status/(?P<node_id>[\w-]+)$', 'moderation_status', name='moderation_status'), + + # dr: data_review + url(r'^/page-no=(?P<page_no>\d+)/$', 'moderation', name='moderation_dr_page'), + + # to publish resource to next/parent(if last group) moderated group + url(r'^/approve/$', 'approve_resource', name='approve_resource'), + + # # to save edited data-review row + # url(r'^/save/$', 'data_review_save', name='data_review_save'), + + # # to render search result with and without page no. + # url(r'^/search$', 'get_dr_search_result_dict', name="data_review_search"), + # url(r'^/search/search_text=(?P<search_text>[^/]+)/page-no=(?P<page_no>\d+)/$', 'get_dr_search_result_dict', name="data_review_search_page"), + )
\ No newline at end of file |