1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/7add3a6019d3/ Changeset: 7add3a6019d3 User: carlfeberhard Date: 2013-06-07 22:09:34 Summary: model.HDA.to_library_dataset...: remove list from method defaults Affected #: 1 file diff -r ef514ac8de1df7e49e4dfbb0ca7a399449693873 -r 7add3a6019d30318ed8fa0f757f020a560e32c41 lib/galaxy/model/__init__.py --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -1542,7 +1542,7 @@ return hda def to_library_dataset_dataset_association( self, trans, target_folder, - replace_dataset=None, parent_id=None, user=None, roles=[], ldda_message='' ): + replace_dataset=None, parent_id=None, user=None, roles=None, ldda_message='' ): """ Copy this HDA to a library optionally replacing an existing LDDA. """ @@ -1577,6 +1577,7 @@ object_session( self ).add( ldda ) object_session( self ).flush() # If roles were selected on the upload form, restrict access to the Dataset to those roles + roles = roles or [] for role in roles: dp = trans.model.DatasetPermissions( trans.app.security_agent.permitted_actions.DATASET_ACCESS.action, ldda.dataset, role ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.