[ckan-dev] Multiple plugins implement same action method

Pabitra Dash pkdash_reena at hotmail.com
Thu Jun 19 19:53:56 UTC 2014


Thanks Ian. 
I my own plugin where I override the 'package_update' I call the core package_update method. The other plugin doesn't call the core action method. As long as update_package is executed from both these plugins (sequence does not matter) it should work for me. 
Pabitra

> Date: Thu, 19 Jun 2014 15:09:39 -0400
> From: ian at excess.org
> To: ckan-dev at lists.okfn.org
> Subject: Re: [ckan-dev] Multiple plugins implement same action method
> 
> On Thu, Jun 19, 2014 at 2:38 PM, Pabitra Dash <pkdash_reena at hotmail.com> wrote:
> > Hi All,
> >
> > I have overridden the 'package_update' action in one of my plugins. I
> > installed another plugin which also has implemented the same action method.
> > At run time now I am getting an error that says the action method is already
> > implemented in one plugin. Which means no more than one plugin can override
> > the same action method. Is there anyway to resolve this if I want to use the
> > downloaded plugin?
> 
> That's not currently supported, but we've been talking about adding a
> toolkit function for calling the original action and possibly allowing
> chaining of actions.
> 
> Do both plugins call the core package_update implementation? If so we
> might be able to chain them, if not, how would you expect both to
> work?
> 
> Ian
> _______________________________________________
> 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/20140619/8ea53799/attachment-0003.html>


More information about the ckan-dev mailing list