diff options
author | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-07-07 09:39:50 +0530 |
---|---|---|
committer | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-07-07 09:39:50 +0530 |
commit | 2b0b9640310477dadbc5e420b3238a3c968fa030 (patch) | |
tree | 7605a0404f7373a645a34f71071ceece2ee6c56a /gnowsys-ndf/gnowsys_ndf | |
parent | 2a5d4d4853b05771d1dd093f4a8cf11a1d63d652 (diff) | |
download | gnowsys-2b0b9640310477dadbc5e420b3238a3c968fa030.tar.gz |
Imported ast in file.py
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/views/file.py | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/views/file.py b/gnowsys-ndf/gnowsys_ndf/ndf/views/file.py index f701081..0882d32 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/views/file.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/views/file.py @@ -7,6 +7,7 @@ import mimetypes import os import tempfile # import re +import ast import ox import pandora_client import threading @@ -671,19 +672,6 @@ def submitDoc(request, group_id): """ submit files for saving into gridfs and creating object """ - # ins_objectid = ObjectId() - # 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) }) - # if group_ins: - # group_id = str(group_ins._id) - # else : - # auth = node_collection.one({'_type': 'Author', 'name': unicode(request.user.username) }) - # if auth : - # group_id = str(auth._id) - # else : - # # print group_id - # pass try: group_id = ObjectId(group_id) |