VirtualMailManager/constants/ERROR.py
author Pascal Volk <neverseen@users.sourceforge.net>
Fri, 22 Aug 2008 03:07:53 +0000
changeset 53 5b50eb306d37
parent 52 c152d7714802
child 56 9ae1b1b2ee5c
permissions -rw-r--r--
* 'VirtualMailManager/DomainAlias.py' - Implemented: + DomainAlias.__init__() + DomainAlias._exists() + DomainAlias.save() + DomainAlias.info() + DomainAlias.delete() * 'VirtualMailManager/VirtualMailManager.py' - Updated the following methods to use the DomainAlias class: + VirtualMailManager.domain_alias_add() + VirtualMailManager.domain_alias_delete() - Implemented VirtualMailManager.domain_alias_info() * 'VirtualMailManager/Domain.py' - Deleted methods: + Domain._aliasExists() + Domain.saveAlias() - Deleted module function deleteAlias() * 'vmm' - Replaced some print statements with w_std() function calls This eliminates the ugly UnicodeEncodeErrors if the preferred encoding is 'outdated' (encodings like 'ascii' ;-) ) * 'po/de.po' * 'po/vmm.pot' - updated

#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Copyright 2007-2008 VEB IT
# See COPYING for distribution information.
# $Id$

ACCOUNT_AND_ALIAS_PRESENT = 20
ACCOUNT_EXISTS = 21
ACCOUNT_PRESENT = 22
ALIAS_ADDR_DEST_IDENTICAL = 23
ALIAS_EXISTS = 24
ALIAS_MISSING_DEST = 25
ALIAS_PRESENT = 26
CONF_ERROR = 27
CONF_NOFILE = 28
CONF_NOPERM = 29
CONF_WRONGPERM = 30
DATABASE_ERROR = 31
DOMAINDIR_GROUP_MISMATCH = 32
DOMAIN_ALIAS_EXISTS = 33
DOMAIN_ALIAS_INIT = 34
DOMAIN_ALIAS_ISDOMAIN = 35
DOMAIN_ALIAS_NO_DOMDEST = 36
DOMAIN_EXISTS = 37
DOMAIN_INVALID = 38
DOMAIN_NO_NAME = 39
DOMAIN_TOO_LONG = 40
FOUND_DOTS_IN_PATH = 41
INVALID_ADDRESS = 42
INVALID_AGUMENT = 43
INVALID_OPTION = 44
INVALID_SECTION = 45
LOCALPART_INVALID = 46
LOCALPART_TOO_LONG = 47
MAILDIR_PERM_MISMATCH = 48
MAILLOCATION_INIT = 49
NOT_EXECUTABLE = 50
NO_SUCH_ACCOUNT = 51
NO_SUCH_ALIAS = 52
NO_SUCH_BINARY = 53
NO_SUCH_DIRECTORY = 54
NO_SUCH_DOMAIN = 55
NO_SUCH_DOMAIN_ALIAS = 56
TRANSPORT_INIT = 57
UNKNOWN_MAILLOCATION_ID = 58
UNKNOWN_SERVICE = 59
UNKNOWN_TRANSPORT_ID = 60