[ckan-dev] Override method

Matthew Fullerton matthew at smartlane.de
Tue Feb 24 08:55:13 UTC 2015


Hi Tomas,
I don't think so, but if anyone knows a way, I'd be interested. I had to modify CKAN core to achieve a similar effect (Finish button already on the first part allowing adding a dataset withiout resources). I'd like to move that into a plugin.

Best,
Matt


Projekt SMARTLANE

matthew at smartlane.de
T +49.89.289.28575
F +49.89.289.22333
www.smartlane.de

EXIST-Gründungsvorhaben „Tapestry“
c/o Lehrstuhl für Verkehrstechnik
Technische Universität München
Arcisstraße 21
80333 München


On 17 February 2015 at 12:34, Funquist Tomas <tomas.funquist at smhi.se> wrote:
>
> Hello!
>
> I want to slightly modify the ”new_resource” method in ckan/controllers/package.py. Can I in a plugin somehow override that method? I have without success tried with the IActions interface.
>
> What I want to do is to add
>
>                                  elif save_action == 'finish':
>
> to the save_action checks. This because we in our dataset form doesn’t want the third tab, “Additional Info”.
>
>  
>
> /Tomas
>
>  
>
>
> _______________________________________________
> 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