commit/galaxy-central: natefoo: In the DistributedObjectStore, when update_from_file is called with create=True, call DistributedObjectStore.create().
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/a0f64b544cc6/ changeset: a0f64b544cc6 user: natefoo date: 2012-04-03 17:55:56 summary: In the DistributedObjectStore, when update_from_file is called with create=True, call DistributedObjectStore.create(). affected #: 1 file diff -r 8a572a3e1685e58212533c6141714c323bc67159 -r a0f64b544cc6412516a62459808e0026d2897dc0 lib/galaxy/objectstore/__init__.py --- a/lib/galaxy/objectstore/__init__.py +++ b/lib/galaxy/objectstore/__init__.py @@ -963,6 +963,9 @@ return self.__call_method('get_filename', obj, ObjectNotFound, True, **kwargs) def update_from_file(self, obj, **kwargs): + if kwargs.get('create', False): + self.create(obj, **kwargs) + kwargs['create'] = False return self.__call_method('update_from_file', obj, ObjectNotFound, True, **kwargs) def get_object_url(self, obj, **kwargs): 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.
participants (1)
-
Bitbucket