diff --git a/modoboa/extensions/amavis/management/commands/amnotify.py b/modoboa/extensions/amavis/management/commands/amnotify.py index d9962b93f..577a81308 100644 --- a/modoboa/extensions/amavis/management/commands/amnotify.py +++ b/modoboa/extensions/amavis/management/commands/amnotify.py @@ -44,7 +44,7 @@ class Command(BaseCommand, CloseConnectionMixin): def handle(self, *args, **options): if options["baseurl"] is None: raise CommandError("You must provide the --baseurl option") - Amavis.load() + Amavis().load() self.options = options self.notify_admins_pending_requests() diff --git a/modoboa/extensions/amavis/management/commands/qcleanup.py b/modoboa/extensions/amavis/management/commands/qcleanup.py index 34dcdc060..eaf1ed283 100644 --- a/modoboa/extensions/amavis/management/commands/qcleanup.py +++ b/modoboa/extensions/amavis/management/commands/qcleanup.py @@ -35,7 +35,7 @@ class Command(BaseCommand, CloseConnectionMixin): print msg def handle(self, *args, **options): - Amavis.load() + Amavis().load() if options["debug"]: import logging l = logging.getLogger("django.db.backends") diff --git a/modoboa/extensions/postfix_autoreply/management/commands/autoreply.py b/modoboa/extensions/postfix_autoreply/management/commands/autoreply.py index 44d2ed172..0dd3ecd23 100644 --- a/modoboa/extensions/postfix_autoreply/management/commands/autoreply.py +++ b/modoboa/extensions/postfix_autoreply/management/commands/autoreply.py @@ -53,7 +53,7 @@ class Command(BaseCommand, CloseConnectionMixin): raise CommandError( "usage: ./manage.py autoreply ") - PostfixAutoreply.load() + PostfixAutoreply().load() sender = args[0] for fulladdress in args[1:]: address, domain = split_mailbox(fulladdress) diff --git a/modoboa/extensions/radicale/management/commands/generate_rights.py b/modoboa/extensions/radicale/management/commands/generate_rights.py index 25365c514..58663a855 100644 --- a/modoboa/extensions/radicale/management/commands/generate_rights.py +++ b/modoboa/extensions/radicale/management/commands/generate_rights.py @@ -103,7 +103,7 @@ permission = %s def handle(self, *args, **options): """Command entry point.""" - Radicale.load() + Radicale().load() path = parameters.get_admin("RIGHTS_FILE_PATH", app="radicale") if not options["force"]: try: diff --git a/modoboa/extensions/stats/management/commands/logparser.py b/modoboa/extensions/stats/management/commands/logparser.py index 089c374ab..e898d338c 100644 --- a/modoboa/extensions/stats/management/commands/logparser.py +++ b/modoboa/extensions/stats/management/commands/logparser.py @@ -373,7 +373,7 @@ class Command(BaseCommand, CloseConnectionMixin): ) def handle(self, *args, **options): - Stats.load() + Stats().load() if options["logfile"] is None: options["logfile"] = parameters.get_admin("LOGFILE", app="stats") p = LogParser(options, parameters.get_admin("RRD_ROOTDIR", app="stats"))