VirtualMailManager/Account.py
branchv0.6.x
changeset 250 73cd082cd724
parent 246 481280686789
child 252 af555e6967c8
equal deleted inserted replaced
249:bb7d9906c529 250:73cd082cd724
   130         """Raise an AccountError if the Account is new - not yet saved in the
   130         """Raise an AccountError if the Account is new - not yet saved in the
   131         database."""
   131         database."""
   132         if self._new:
   132         if self._new:
   133             raise AErr(_(u"The account '%s' doesn't exist.") % self._addr,
   133             raise AErr(_(u"The account '%s' doesn't exist.") % self._addr,
   134                        NO_SUCH_ACCOUNT)
   134                        NO_SUCH_ACCOUNT)
       
   135 
       
   136     @property
       
   137     def address(self):
       
   138         """The Account's EmailAddress instance."""
       
   139         return self._addr
   135 
   140 
   136     @property
   141     @property
   137     def domain_directory(self):
   142     def domain_directory(self):
   138         """The directory of the domain the Account belongs to."""
   143         """The directory of the domain the Account belongs to."""
   139         return self._domain.directory
   144         return self._domain.directory