mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-04 12:24:09 +01:00
"Top redirection" feature.
A new admin parameter is available to specify the default application that will be launched when no one is present in the url. (ie. when the top level "/" is called). fixed #165
This commit is contained in:
@@ -6,6 +6,10 @@ from django.conf import settings
|
||||
def isinstalled(ext):
|
||||
return "modoboa.extensions.%s" % ext in settings.INSTALLED_APPS
|
||||
|
||||
def get_extension_infos(name):
|
||||
ext = __import__(name, globals(), locals(), ["main"])
|
||||
return ext.main.infos()
|
||||
|
||||
def loadextensions(prefix):
|
||||
# To avoid a circular import...
|
||||
from modoboa.admin.models import Extension
|
||||
|
||||
@@ -12,7 +12,8 @@ def infos():
|
||||
return {
|
||||
"name" : "Amavis quarantine",
|
||||
"version" : "1.0",
|
||||
"description" : ugettext("Simple amavis quarantine management tool")
|
||||
"description" : ugettext("Simple amavis quarantine management tool"),
|
||||
"url" : "quarantine"
|
||||
}
|
||||
|
||||
def init():
|
||||
|
||||
@@ -18,7 +18,8 @@ def infos():
|
||||
return {
|
||||
"name" : "Postfix autoreply",
|
||||
"version" : "1.0",
|
||||
"description" : ugettext("Auto-reply (vacation) functionality using Postfix")
|
||||
"description" : ugettext("Auto-reply (vacation) functionality using Postfix"),
|
||||
"url" : "postfix_autoreply"
|
||||
}
|
||||
|
||||
def init():
|
||||
|
||||
@@ -39,7 +39,8 @@ def infos():
|
||||
return {
|
||||
"name" : "Sieve filters",
|
||||
"version" : "1.0",
|
||||
"description" : ugettext("Plugin to easily create server-side filters")
|
||||
"description" : ugettext("Plugin to easily create server-side filters"),
|
||||
"url" : "sfilters"
|
||||
}
|
||||
|
||||
def urls(prefix):
|
||||
|
||||
@@ -17,7 +17,8 @@ def infos():
|
||||
return {
|
||||
"name" : "Statistics",
|
||||
"version" : "1.0",
|
||||
"description" : ugettext("Graphical statistics about emails traffic using RRDtool")
|
||||
"description" : ugettext("Graphical statistics about emails traffic using RRDtool"),
|
||||
"url" : "stats"
|
||||
}
|
||||
|
||||
def init():
|
||||
|
||||
@@ -73,7 +73,8 @@ def infos():
|
||||
return {
|
||||
"name" : "Webmail",
|
||||
"version" : "1.0",
|
||||
"description" : ugettext("Simple IMAP webmail")
|
||||
"description" : ugettext("Simple IMAP webmail"),
|
||||
"url" : "webmail"
|
||||
}
|
||||
|
||||
def urls(prefix):
|
||||
|
||||
Reference in New Issue
Block a user