wip: UI refactoring

* We now make a distinction between aliases, fowards and distribution lists
* Admin listing were updated

see #204
This commit is contained in:
Antoine Nguyen
2012-04-26 16:44:35 +02:00
parent e2aba600f1
commit 3924c2bd3d
11 changed files with 210 additions and 87 deletions
+5 -2
View File
@@ -712,7 +712,10 @@ class Alias(DatesAware):
@property
def name_or_rcpt(self):
return "%s, ..." % self.get_recipients()[0]
rcpts = self.get_recipients()
if len(rcpts) > 1:
return "%s, ..." % rcpts[0]
return rcpts[0]
def save(self, int_rcpts, ext_rcpts, *args, **kwargs):
if len(ext_rcpts):
@@ -729,7 +732,7 @@ class Alias(DatesAware):
self.mboxes.remove(t)
def get_recipients(self):
"""Return a the recipients list
"""Return the recipients list
Internal and external addresses are mixed into a single list.
"""