diff options
author | katkamrachana <katkam.rachana@gmail.com> | 2015-06-15 16:24:36 +0530 |
---|---|---|
committer | katkamrachana <katkam.rachana@gmail.com> | 2015-06-15 16:24:36 +0530 |
commit | 9872949824b2a90de4d1ff9068963e6c18872ec1 (patch) | |
tree | 119285c1e1f793be48db0553e53d9f8e42872a7d /gnowsys-ndf/gnowsys_ndf/ndf/urls | |
parent | 54e0fe92d2a5a8449921c1a1f17691d311e4e889 (diff) | |
parent | ede6bf410502473a348cf0b0e295fc5bde8a87b9 (diff) | |
download | gnowsys-9872949824b2a90de4d1ff9068963e6c18872ec1.tar.gz |
Merge branch 'mongokit' of https://github.com/gnowledge/gstudio into mongokit
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/urls')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py | 1 | ||||
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/urls/moderation.py | 28 |
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 |