summaryrefslogtreecommitdiff
path: root/gnowsys-ndf/gnowsys_ndf/ndf/urls
diff options
context:
space:
mode:
authorRachana <katkam.rachana@gmail.com>2015-06-15 16:23:14 +0530
committerRachana <katkam.rachana@gmail.com>2015-06-15 16:23:14 +0530
commitede6bf410502473a348cf0b0e295fc5bde8a87b9 (patch)
tree8bbfa7a7cfee976d8c0d5902b1d6035387086fab /gnowsys-ndf/gnowsys_ndf/ndf/urls
parentb2819c5f6bc42ffe6a15978e2678585922ababd9 (diff)
parentada466ab4458e14f76834c5be07890bfb251f8db (diff)
downloadgnowsys-ede6bf410502473a348cf0b0e295fc5bde8a87b9.tar.gz
Merge pull request #1181 from kedar2a/mongokit-curation-workflow
Curation Work Flow implemented
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/urls')
-rw-r--r--gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py1
-rw-r--r--gnowsys-ndf/gnowsys_ndf/ndf/urls/moderation.py28
2 files changed, 29 insertions, 0 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py
index c8867cb..0fad1de 100644
--- a/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py
+++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py
@@ -66,6 +66,7 @@ urlpatterns = patterns('',
(r'^(?P<group_id>[^/]+)/data-review', include('gnowsys_ndf.ndf.urls.data_review')),
(r'^(?P<group_id>[^/]+)/observation', include('gnowsys_ndf.ndf.urls.observation')),
(r'^(?P<group_id>[^/]+)/compare', include('gnowsys_ndf.ndf.urls.version')),
+ (r'^(?P<group_id>[^/]+)/moderation', include('gnowsys_ndf.ndf.urls.moderation')),
url(r'^(?P<group_id>[^/]+)/topic_details/(?P<app_Id>[\w-]+)', 'gnowsys_ndf.ndf.views.topics.topic_detail_view', name='topic_details'),
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..927b0ee
--- /dev/null
+++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/moderation.py
@@ -0,0 +1,28 @@
+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 all objects under moderation
+ url(r'^/status/all-under-moderation/$', 'all_under_moderation', name='all_under_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