Giter Site home page Giter Site logo

Plugins management page about modoboa HOT 4 CLOSED

modoboa avatar modoboa commented on May 15, 2024
Plugins management page

from modoboa.

Comments (4)

tonioo avatar tonioo commented on May 15, 2024

Posted by Antoine Nguyen on 2010-05-05T17:51:16Z

Actually, It seems that we cannot modify the settings module at runtime... A partial solution has been found (using a new table in the database). Unfortunately, custom templatetags are not usable if the corresponding module name is not present inside the INSTALLED_APPS parameter...

How to bypass this mechanism?

from modoboa.

tonioo avatar tonioo commented on May 15, 2024

Posted by Antoine Nguyen on 2010-05-25T16:31:47Z

add_to_builtins is one possible way. Maybe not the best...
Done in [5b477f95613a]

from modoboa.

tonioo avatar tonioo commented on May 15, 2024

Posted by Antoine Nguyen on 2010-05-26T13:17:18Z

[A traduire plus tard]
Je vais repousser cette fonctionnalité car Django n'est vraiment pas prévu pour ca. Je n'ai pas réussi à trouver un moyen de mettre à jour la table d'urls systématiquement. Il y a pas mal de cas ou cela plante.
Autre méthode proposée par Alex: laisser toutes les extensions dans INSTALLED_APPS et faire un middleware pour contrôler les accès. Les problèmes avec cette méthode sont nombreux (modules omportés quoiqu'il arrive, dépendances obligatoires, modèles pris en compte par syncdb).

Bref, c'est le bordel, on reporte à plus tard!!
[/A traduire plus tard]

Django is not designed to support this.

from modoboa.

tonioo avatar tonioo commented on May 15, 2024

Posted by Antoine Nguyen on 2010-10-25T12:54:41Z

Finally, [9e127305fff1] is the answer!

What I've done:

  • all extensions are now listed in INSTALLED_APPS (like normal django applications),
  • a new table is used to wrap plugins states (on/off),
  • a new middleware controls accesses to extensions.

This is working pretty well like that.

from modoboa.

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.