[ckan-dev] changing package schema in 2 extensions
Dan Mihaila
danmihaila at gmail.com
Tue May 30 07:06:16 UTC 2017
Hi Ian,
I understand your suggestion, but this is also a limitation that you can
not use in the same time 2 different extensions that are using the same
package type.
We will see how to handle this.
Thank you for reply.
*Dan Mihaila*, IT Consultant
(M) +40 722 502 304 • (GTalk) dan.mihaila at gmail.com • (Skype) carcotelul
• (Twitter) dan_mihaila
On Mon, May 29, 2017 at 5:32 PM, Ian Ward <ian at excess.org> wrote:
> Hi Dan,
>
> Only one IDatasetForm plugin can be registered per dataset type, but
> it might be possible to subclass one of your plugins and override the
> methods you need. Make sure to only add your subclassed plugin to your
> plugins config, not the base class, and you should be fine. (This is
> how scheming lets you override its dataset plugin when necessary)
>
> Ian
>
> On Mon, May 29, 2017 at 9:34 AM, Dan Mihaila <danmihaila at gmail.com> wrote:
> > Hello,
> > In our project (HDX - data.humdata.org), we have enabled 2 extensions
> which
> > extends ckan.plugins.IDatasetForm . Only one has is_fallback() returning
> > True, but we are trying to change the package schema in each extension.
> The
> > changes made by the extension where is_fallback() returns False are not
> > applied. Do you have any solution for this? Note: package type is the
> same
> > (dataset).
> >
> > Thanks,
> >
> > Dan Mihaila, IT Consultant
> > (M) +40 722 502 304 • (GTalk) dan.mihaila at gmail.com • (Skype) carcotelul
> > • (Twitter) dan_mihaila
> >
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > https://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170530/01cd2206/attachment-0003.html>
More information about the ckan-dev
mailing list