intermine / intermine-apps-c

InterMine apps built using Bower and Grunt
http://intermine-apps-c.labs.intermine.org/
1 stars 3 forks source link

list-widgets: correctly introspect the model in #all #26

Open alexkalderimis opened 10 years ago

alexkalderimis commented 10 years ago

When deciding which widgets are suitable, use the introspection facilities of the intermine.Model.

listType = model.makePath list.type
suitable = (w for w in widgets when _.any w.targets, listType.isa)
radekstepan commented 10 years ago

One is explicitly passing a type param into @all. I don't want to break the interface. Also, I would have to fetch the list using imjs first, to get all of its actual types...

Is there a scenario where the current approach does not work?