diff options
author | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-05-02 14:29:02 +0530 |
---|---|---|
committer | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-05-02 14:29:02 +0530 |
commit | 73722d9e542edee6aa724599996ad3ae209cc1b2 (patch) | |
tree | 778f13f907758deb3893b3a9ce9f4a9e0dad7b4e | |
parent | 98ef0adddd464d6d4412180ac0c4e1d799d6e615 (diff) | |
download | gnowsys-73722d9e542edee6aa724599996ad3ae209cc1b2.tar.gz |
Error while rendering resourse template is resolved
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py | 2 | ||||
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/views/file.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py index 8803c6b..e822a32 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py @@ -67,7 +67,7 @@ urlpatterns = patterns('', (r'^(?P<group_id>[^/]+)/observation', include('gnowsys_ndf.ndf.urls.observation')), (r'^(?P<group_id>[^/]+)/compare', include('gnowsys_ndf.ndf.urls.version')), - url(r'^(?P<group_id>[^/]+)/topic_details/(?P<app_Id>ta+)', 'gnowsys_ndf.ndf.views.topics.topic_detail_view', name='topic_details'), + url(r'^(?P<group_id>[^/]+)/topic_details/(?P<app_Id>[\w-]+)', 'gnowsys_ndf.ndf.views.topics.topic_detail_view', name='topic_details'), # -- django-json-rpc method calls -- url(r'^json/browse/$', 'jsonrpc.views.browse', name='jsonrpc_browser'), diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/views/file.py b/gnowsys-ndf/gnowsys_ndf/ndf/views/file.py index cc3b37a..ac8f007 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/views/file.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/views/file.py @@ -1103,8 +1103,8 @@ def delete_file(request, group_id, _id): def file_detail(request, group_id, _id): """Depending upon mime-type of the node, this view returns respective display-view. """ + imageCollection = "" # ins_objectid = ObjectId() - # imageCollection="" # if ins_objectid.is_valid(group_id) is False : # group_ins = node_collection.find_one({'_type': "Group","name": group_id}) # auth = node_collection.one({'_type': 'Author', 'name': unicode(request.user.username) }) |