commit/galaxy-central: carlfeberhard: Visualition framework: have 'has_dataprovider' test work on 'test_attr'
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/425272160a7f/ Changeset: 425272160a7f User: carlfeberhard Date: 2013-08-07 17:12:34 Summary: Visualition framework: have 'has_dataprovider' test work on 'test_attr' Affected #: 1 file diff -r f33c054d6d5b75ae545248d71ec559d74b4fa636 -r 425272160a7f3764823e18ea395539c54c8e41fd lib/galaxy/visualization/registry.py --- a/lib/galaxy/visualization/registry.py +++ b/lib/galaxy/visualization/registry.py @@ -530,11 +530,10 @@ #TODO: wish we could take this further but it would mean passing in the datatypes_registry test_fn = lambda o, result: isinstance( getter( o ), result ) - #TODO: needs cleanup - robustiosity-nessness # does the object itself have a datatype attr and does that datatype have the given dataprovider elif test_type == 'has_dataprovider': - test_fn = lambda o, result: ( hasattr( o, 'datatype' ) - and o.datatype.has_dataprovider( result ) ) + test_fn = lambda o, result: ( hasattr( getter( o ), 'has_dataprovider' ) + and getter( o ).has_dataprovider( result ) ) # default to simple (string) equilavance (coercing the test_attr to a string) else: 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)
-
commits-noreply@bitbucket.org