◄ ► | Muuda | Home | Admin | en de fr et | Sign in

#5966 (Should we stop using from .ui import *?)

by Luc Saffre · in Developers · assigned to Luc Saffre

Kokkuvõte

Children

Kommentaarid

  • 1 aasta, 7 kuud ago by Luc Saffre about #5966 (Should we stop using from .ui import *?) : I had a look at django.apps.registry and I am tempted to try to review the Lino startup process because Django has evolved during the last 10 years. Let lino.core.plugin.Plugin inherit from AppConfig and use apps.get_app_config() instead of dd.plugins. Override AppConfig.import_models() so that it a...
  • 1 aasta, 7 kuud ago by Luc Saffre about #5966 (Should we stop using from .ui import *?) : Most people say that "from x import *" is bad code style. But we use "from .ui import *" in a well-defined context in order to follow another code style principle which is "don't repeat yourself". We deliberately merge database models and actors into a same pot (the plugin's namespace) because it m...
  • 1 aasta, 7 kuud ago by Luc Saffre about #5966 (Should we stop using from .ui import *?) : Created new Ticket #5966 (Can we stop using from .ui import *?).