Hello to all,
In recent days, I try to do the "set_library_permissions ()" bioblend's
function working.
I tried the following syntaxes, and it was unsuccessful. Anybody know how to
use it? Or otherwise, how would it be possible to modify user access to
libraries (or contents)?
----------------------------------------------
Bonjour à tous,
Depuis quelques jours, je tente de faire fonctionner la fonction
"set_library_permissions()".
J'ai tenté les syntaxes suivantes, et ce fût sans succès. Quelqu'un
saurait-il comment l'utiliser ? Ou comment serait-il possible de modifier
les accès utilisateurs d'une autre manière ?
----------------------------------------------
"instance" is opened with an admin API key.
1 --> print
instance.libraries.set_library_permissions(library_id="417e33144b294c21",
access_in=None, modify_in=None, add_in=None, manage_in=None)
Traceback (most recent call last):
File "Workflow_Lib/work_test.py", line 76, in <module>
main()
File "Workflow_Lib/work_test.py", line 39, in main
print
instance.libraries.set_library_permissions(library_id="417e33144b294c21",
access_in=None, modify_in=None, add_in=None, manage_in=None)
File
"/home/gcc2013/lib/bioblend/lib/python2.7/site-packages/bioblend-0.4.3_dev-py2.7.egg/bioblend/galaxy/libraries/__init__.py",
line 308, in set_library_permissions
return Client._post(self, payload, url=url)
File
"/home/gcc2013/lib/bioblend/lib/python2.7/site-packages/bioblend-0.4.3_dev-py2.7.egg/bioblend/galaxy/client.py",
line 181, in _post
r = self.gi.make_post_request(url, payload=payload,
files_attached=files_attached)
File
"/home/gcc2013/lib/bioblend/lib/python2.7/site-packages/bioblend-0.4.3_dev-py2.7.egg/bioblend/galaxyclient.py",
line 99, in make_post_request
r.status_code, body=r.text) # @see self.body for HTTP response body
bioblend.galaxy.client.ConnectionError: Unexpected response from galaxy:
500: <html>
<head><title>Internal Server Error</title></head>
<body>
<h1>Internal Server Error</h1>
<p>The server has either erred or is incapable of performing
the requested operation.
<br/>
<!-- --></p>
<hr noshade>
<div align="right">WSGI Server</div>
</body>
</html>
2 --> print
instance.libraries.set_library_permissions(library_id="417e33144b294c21",
access_in=[admin_id], modify_in=[admin_id], add_in=[admin_id],
manage_in=[admin_id])
3 --> Moreover, are we supposed to view the content of this page?
http://localhost:8080/api/libraries/417e33144b294c21/permissions
----------------------------------------------
Thank you in advance to the community for your help,
Kevin MURET
Intern at Station Biologique de Roscoff
ABiMS platform
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client. To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
http://lists.bx.psu.edu/
To search Galaxy mailing lists use the unified search at:
http://galaxyproject.org/search/mailinglists/