It is now possible to delete a SuperAdmin permission.

Postfix Autoreply plugin is not a real plugin... I've begun the conversion but it will cause a modification into the SQL schema and I don't know how to handle migrations yet...
This commit is contained in:
tonio
2009-10-22 18:31:43 +02:00
parent 52039a2b08
commit 981540b2b5
5 changed files with 39 additions and 13 deletions
+2
View File
@@ -42,6 +42,8 @@ def urls():
include('mailng.extensions.amavis_quarantine.urls'))
def menu(**kwargs):
if kwargs["target"] != "user_menu_box":
return []
return [
{"name" : _("Quarantine"),
"url" : reverse(index),
+15
View File
@@ -7,7 +7,10 @@ This module provides a way to integrate MailNG auto-reply
functionality into Postfix.
"""
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from mailng.lib import events
from mailng import main
from models import Transport, Alias
def init():
@@ -17,9 +20,21 @@ def init():
events.register("DeleteMailbox", onDeleteMailbox)
events.register("ModifyMailbox", onModifyMailbox)
events.register("UserMenuDisplay", menu)
def urls():
return ()
def menu(**kwargs):
if kwargs["target"] != "user_menu_bar":
return []
return [
{"name" : "autoreply",
"url" : reverse(main.views.autoreply),
"img" : "/static/pics/auto-reply.png",
"label" : _("Auto-reply message")}
]
def onCreateDomain(**kwargs):
dom = kwargs["dom"]
transport = Transport()