Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot view datasets as new user #387

Open
gkiar opened this issue Dec 7, 2016 · 1 comment
Open

cannot view datasets as new user #387

gkiar opened this issue Dec 7, 2016 · 1 comment
Assignees
Labels

Comments

@gkiar
Copy link

gkiar commented Dec 7, 2016

I have a new account on the instance currently living at cloud.neurodata.io/nd/. However, when I try to "View Datasets," (this url) I get an error, copied below. This error is not present when I am logged in as neurodata.

TypeError at /nduser/datasets/
unsupported operand type(s) for |: 'function' and 'QuerySet'
Request Method:	GET
Request URL:	http://cloud.neurodata.io/nd/nduser/datasets/
Django Version:	1.10
Exception Type:	TypeError
Exception Value:	
unsupported operand type(s) for |: 'function' and 'QuerySet'
Exception Location:	./nduser/views.py in getDatasets, line 247
Python Executable:	/usr/bin/uwsgi-core
Python Version:	2.7.6
Python Path:	
['.',
 '',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/home/neurodata/ndstore/django',
 '/home/neurodata/ndstore',
 '/home/neurodata/ndstore/ingest-client',
 '/home/neurodata/ndstore/django',
 '/home/neurodata/ndstore/ndlib',
 '/home/neurodata/ndstore/spdb',
 '/home/neurodata/ndstore/ndlib',
 '/home/neurodata/ndstore/spdb',
 '/home/neurodata/ndstore/ndlib',
 '/home/neurodata/ndstore/spdb',
 '/home/neurodata/ndstore/ndlib',
 '/home/neurodata/ndstore/spdb',
 '/home/neurodata/ndstore/ndlib',
 '/home/neurodata/ndstore/spdb',
 '/home/neurodata/ndstore/ndlib',
 '/home/neurodata/ndstore/spdb',
 '/home/neurodata/ndstore/ndlib',
 '/home/neurodata/ndstore/spdb',
 '/home/neurodata/ndstore/ndlib',
 '/home/neurodata/ndstore/spdb']
Server time:	Wed, 7 Dec 2016 16:13:19 -0500
@kunallillaney
Copy link
Collaborator

@randalburns @Aeusman I think this is happening because you call for all public datasets for a non-root user. The UI excepts that to be a QuerySet and I think this got replaced in the ndprojects change. Do not have an easy long term fix for this, a short-term fix would be to fall back on the old method which fetches the queryset. I will investigate this later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants