* 'VirtualMailManager/VirtualMailManager.py'
- Implemented:
+ VirtualMailManager.domain_alias_add()
+ VirtualMailManager.domain_alias_delete()
* 'VirtualMailManager/Domain.py'
- Implemented:
+ Domain._aliasExists()
+ Domain.saveAlias()
+ deleteAlias()
- Fixed Domain._exists(); returns only True when the domain exists
AND it's the primary domain
- Fixed table order in Domain.delete()
* 'vmm'
- _printList() added ace2idna support for alias domains
- Implemented:
+ domain_alias_add()
+ domain_alias_delete()
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Copyright 2007-2008 VEB IT
# See COPYING for distribution information.
# $Id$
"""Exception classes for Virtual Mail Manager"""
from constants.VERSION import VERSION
__author__ = 'Pascal Volk <p.volk@veb-it.de>'
__version__ = VERSION
__revision__ = 'rev '+'$Rev$'.split()[1]
__date__ = '$Date$'.split()[1]
class VMMException(Exception):
"""Exception class for VirtualMailManager exceptions"""
def __init__(self, msg):
Exception.__init__(self, msg)
class VMMConfigException(Exception):
"""Exception class for Configurtion exceptions"""
def __init__(self, msg):
Exception.__init__(self, msg)
class VMMPermException(Exception):
"""Exception class for permissions exceptions"""
pass
class VMMNotRootException(Exception):
"""Exception class for non-root exceptions"""
def __init__(self, msg):
Exception.__init__(self, msg)
class VMMDomainException(VMMException):
"""Exception class for Domain exceptions"""
def __init__(self, msg):
VMMException.__init__(self, msg)
class VMMAccountException(VMMException):
"""Exception class for Account exceptions"""
def __init__(self, msg):
VMMException.__init__(self, msg)
class VMMAliasException(VMMException):
"""Exception class for Alias exceptions"""
def __init__(self, msg):
VMMException.__init__(self, msg)
class VMMMailLocationException(VMMException):
"""Exception class for MailLocation exceptions"""
def __init__(self, msg):
VMMException.__init__(self, msg)
class VMMTransportException(VMMException):
"""Exception class for Transport exceptions"""
def __init__(self, msg):
VMMException.__init__(self, msg)