VMM/{Account,Alias,Relocated}: added a address property to the classes v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Thu, 15 Apr 2010 20:21:18 +0000
branchv0.6.x
changeset 250 73cd082cd724
parent 249 bb7d9906c529
child 251 0963ad2f5fe2
VMM/{Account,Alias,Relocated}: added a address property to the classes Account, Alias and Relocated.
VirtualMailManager/Account.py
VirtualMailManager/Alias.py
VirtualMailManager/Relocated.py
--- a/VirtualMailManager/Account.py	Thu Apr 15 19:46:53 2010 +0000
+++ b/VirtualMailManager/Account.py	Thu Apr 15 20:21:18 2010 +0000
@@ -134,6 +134,11 @@
                        NO_SUCH_ACCOUNT)
 
     @property
+    def address(self):
+        """The Account's EmailAddress instance."""
+        return self._addr
+
+    @property
     def domain_directory(self):
         """The directory of the domain the Account belongs to."""
         return self._domain.directory
--- a/VirtualMailManager/Alias.py	Thu Apr 15 19:46:53 2010 +0000
+++ b/VirtualMailManager/Alias.py	Thu Apr 15 20:21:18 2010 +0000
@@ -91,6 +91,11 @@
         """Returns the number of destinations of the alias."""
         return len(self._dests)
 
+    @property
+    def address(self):
+        """The Alias' EmailAddress instance."""
+        return self._addr
+
     def add_destinations(self, destinations, expansion_limit, warnings=None):
         """Adds the `EmailAddress`es from *destinations* list to the
         destinations of the alias.
--- a/VirtualMailManager/Relocated.py	Thu Apr 15 19:46:53 2010 +0000
+++ b/VirtualMailManager/Relocated.py	Thu Apr 15 20:21:18 2010 +0000
@@ -59,6 +59,11 @@
         if destination:
             self._dest = EmailAddress(destination[0])
 
+    @property
+    def address(self):
+        """The Relocated's EmailAddress instance."""
+        return self._addr
+
     def set_destination(self, destination):
         """Sets/updates the new address of the relocated user."""
         update = False