"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:
Antoine Nguyen
2011-09-20 14:57:04 +02:00
parent af4aab9fa6
commit 858fe43cdd
13 changed files with 88 additions and 22 deletions
+4
View File
@@ -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
+2 -1
View File
@@ -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():
+2 -1
View File
@@ -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():
+2 -1
View File
@@ -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):
+2 -1
View File
@@ -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():
+2 -1
View File
@@ -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):