Giter Club home page Giter Club logo

Comments (2)

tchnlgst avatar tchnlgst commented on July 4, 2024 1

Thank you for your response.

I posted the same question under the ckan issues list, and they were kind enough to respond. They let me know that:

The syntax for url_for changed as the different controllers were moved to Flask blueprints, instead of url_for(controller=controller, action=action) you need url_for(blueprint.view_function). Most cases are backwards compatible but this particular one is different because there is a new blueprint for dashboards.

They suggested that I update the code to:

<a href="{{ h.url_for('dashboard.index') }}">Control Panel</a>

So I've done so under /usr/lib/ckan/default/src/ckanext-openafrica/ckanext/openafrica/templates/header.html

from:
<a href="{{ h.url_for(controller='user', action='dashboard') }}">Control Panel</a>

to:
<a href="{{ h.url_for('dashboard.index') }}">Control Panel</a>

That seems to fix the issue. Thank you.

from ckanext-openafrica.

kilemensi avatar kilemensi commented on July 4, 2024

Hey @tchnlgst

As you may have guessed by now, openAFRICA is still running CKAN 2.7. We are also very interested in upgrading it to the latest CKAN release but we just haven't gotten around to it yet.

Looking at v2.8 changelog looks like there were a lot of changes that could cause the above, among them:

  • Major Changes: New Flask blueprints migrated from old Pylons controllers: user, dashboard, feeds, admin and home (#3927, #3870, #3775, #3762)
  • Minor Changes: Standardize on url_for (#3831)

Please start there and let us know what you find.

from ckanext-openafrica.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.