[ckan-dev] plugins: inherit=???

David Raznick david.raznick at okfn.org
Wed May 15 14:07:46 UTC 2013


Hi

Sounds inherently good to me.

David


On Wed, May 15, 2013 at 2:21 PM, Toby Dacre <toby.okfn at gmail.com> wrote:

> when creating plugins
>
> class MyPlugin(p.SingletonPlugin):
>
>     p.implements(p.ISomeInterface)
>
>
> generally people don't add inherit=True which causes problems when
> expanding interfaces.  Currently I'm looking at expanding IActions but
> doing this then breaks lots of extensions.
>
> I'm thinking of patching ckan so that unless we specify inherit=False
> we will inherit.  I can't see where we would not want to inherit but
> it would allow the option if explicitly requested.  Otherwise we just
> keep breaking extensions for no good reason.
>
> Is this a bad plan?  Am I inherently evil?
>
>
> --
> Toby Dacre
>
> The Open Knowledge Foundation
>
> Empowering through Open Knowledge
> http://okfn.org/  |  @okfn
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130515/8efd82a7/attachment-0001.html>


More information about the ckan-dev mailing list