[ckan-dev] Override Core Functionalities

Adrià Mercader adria.mercader at okfn.org
Tue Apr 7 12:43:02 UTC 2015


Hi,

The safest way is to use the available interfaces and hooks [1].

Specifically you could look at before_index, that allows you to
modify what gets indexed into Solr:

http://docs.ckan.org/en/latest/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IPackageController.before_index

If the functionality you need is not exposed there we might need to
add further extension points.


Adrià


[1] http://docs.ckan.org/en/latest/extensions/plugin-interfaces.html

On 7 April 2015 at 13:04, Kirstein, Fabian
<fabian.kirstein at fokus.fraunhofer.de> wrote:
> Hello,
>
>
>
> I need to override some core functionalities. For example the
> ckan.lib.search.index module. I was wondering if there is any way to do that
> without forking CKAN and modifying it directly. Is it possible to copy the
> module into an extension and modify the module loading in a way to use the
> customized module. Any experiences with that?
>
>
>
> Thank you!
>
>
>
>
> _______________________________________________
> 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
>



More information about the ckan-dev mailing list