pyblish / pyblish-base

Pyblish base library - see https://github.com/pyblish/pyblish for details.
Other
127 stars 59 forks source link

No compatibility check with pyblish.util #261

Closed mottosso closed 8 years ago

mottosso commented 8 years ago

@tokejepsen discovered a bug in pyblish-qml, where a plug-in without an argument signature would not run.

class MyPlugin(pyblish.api.Validator):
  def process(self):
    pass

But it did when running it via pyblish.util.publish(). So one of them were in the wrong. Turns out this was pyblish.util.publish().

This is because, recently, an additional check got added to compatibility checking using pyblish.util.instances_by_plugin which is being used by pyblish-qml to decide whether or not to visually display plug-ins, after they've been discovered, based on the collected instances.

pyblish.util.publish() currently does not make this compatibility check.