mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Instantiate extensions...
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -53,7 +53,7 @@ class Command(BaseCommand, CloseConnectionMixin):
|
||||
raise CommandError(
|
||||
"usage: ./manage.py autoreply <sender> <recipient ...>")
|
||||
|
||||
PostfixAutoreply.load()
|
||||
PostfixAutoreply().load()
|
||||
sender = args[0]
|
||||
for fulladdress in args[1:]:
|
||||
address, domain = split_mailbox(fulladdress)
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user