VirtualMailManager/Account.py
changeset 138 617f27715b01
parent 134 6ca3d22e5dd0
child 144 4c6aa6c29dd7
equal deleted inserted replaced
137:fc09f657082d 138:617f27715b01
     2 # Copyright (c) 2007 - 2009, VEB IT
     2 # Copyright (c) 2007 - 2009, VEB IT
     3 # See COPYING for distribution information.
     3 # See COPYING for distribution information.
     4 
     4 
     5 """Virtual Mail Manager's Account class to manage e-mail accounts."""
     5 """Virtual Mail Manager's Account class to manage e-mail accounts."""
     6 
     6 
     7 from constants.VERSION import *
     7 from __main__ import ERR
     8 
       
     9 from Exceptions import VMMAccountException as AccE
     8 from Exceptions import VMMAccountException as AccE
    10 from Domain import Domain
     9 from Domain import Domain
    11 from Transport import Transport
    10 from Transport import Transport
    12 from MailLocation import MailLocation
    11 from MailLocation import MailLocation
    13 from EmailAddress import EmailAddress
    12 from EmailAddress import EmailAddress
    14 import VirtualMailManager as VMM
    13 import VirtualMailManager as VMM
    15 import constants.ERROR as ERR
       
    16 
    14 
    17 class Account(object):
    15 class Account(object):
    18     """Class to manage e-mail accounts."""
    16     """Class to manage e-mail accounts."""
    19     __slots__ = ('_addr','_base','_gid','_mid','_passwd','_tid','_uid','_dbh')
    17     __slots__ = ('_addr','_base','_gid','_mid','_passwd','_tid','_uid','_dbh')
    20     def __init__(self, dbh, address, password=None):
    18     def __init__(self, dbh, address, password=None):