Just retried it on a fresh copy of galaxy-dist (the stable branch of
galaxy-dist now includes this patch) and it worked fine for me. Can
someone else verify? So my best guess is you guys have modified
something in the library code - or you applied that patch but to an
older version of galaxy?

>>> l = gi.libraries.create_library("testlib")
>>> gi.libraries.set_library_permissions( l['id'], access_in=[], modify_in=[], 
>>> add_in=[], manage_in=[] )
{u'description': u'', u'deleted': False, u'synopsis': u'',
u'root_folder_id': u'Ff2db41e1fa331b3e', u'model_class': u'Library',
u'id': u'f2db41e1fa331b3e', u'name': u'testlib'}

Sorry I cannot be of more help.

-John



On Wed, Apr 30, 2014 at 7:26 AM, Kevin Muret <kmu...@sb-roscoff.fr> wrote:
> In addition, the content of "parser.log" file with and without the
> modification
>
> With modification :
> galaxy.web.framework ERROR 2014-04-30 14:11:52,222 Uncaught exception in
> exposed API method:
>
> Traceback (most recent call last):
>   File
> "/w/galaxy/galaxy4kevin/galaxy-dist/lib/galaxy/web/framework/__init__.py",
> line 199, in decorator
>     rval = func( self, trans, *args, **kwargs)
>   File
> "/w/galaxy/galaxy4kevin/galaxy-dist/lib/galaxy/webapps/galaxy/api/permissions.py",
> line 50, in create
>     item = library.to_dict( view='element', value_mapper={ 'id' :
> trans.security.encode_id , 'root_folder_id' : trans.security.encode_id } )
>   File "/w/galaxy/galaxy4kevin/galaxy-dist/lib/galaxy/model/__init__.py",
> line 1960, in to_dict
>     rval[ 'root_folder_id' ] = 'F' + rval[ 'root_folder_id' ]
> TypeError: cannot concatenate 'str' and 'int' objects
>
> Without modification :
> galaxy.web.framework ERROR 2014-04-30 14:16:56,853 Uncaught exception in
> exposed API method:
>
> Traceback (most recent call last):
>   File
> "/w/galaxy/galaxy4kevin/galaxy-dist/lib/galaxy/web/framework/__init__.py",
> line 199, in decorator
>     rval = func( self, trans, *args, **kwargs)
>   File
> "/w/galaxy/galaxy4kevin/galaxy-dist/lib/galaxy/webapps/galaxy/api/permissions.py",
> line 50, in create
>     item = library.to_dict( view='element' )
>   File "/w/galaxy/galaxy4kevin/galaxy-dist/lib/galaxy/model/__init__.py",
> line 1960, in to_dict
>     rval[ 'root_folder_id' ] = 'F' + rval[ 'root_folder_id' ]
> TypeError: cannot concatenate 'str' and 'int' objects
>
>
> 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/

Reply via email to