backport
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Fri, 18 Feb 2005 12:56:04 +0000 (12:56 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:12 +0000 (23:28 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.4--patch-37
   fix glitch with list names

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-483

bin/lists.rpc.py

index fb23d4a..e2cec46 100755 (executable)
@@ -214,11 +214,12 @@ def get_list_info(userdesc,perms,mlist,front_page=0):
             except:
                 mlist.Unlock()
                 return 0
-        
+
+        host = mlist.internal_name().split(VHOST_SEP)[0].lower()
         details = {
                 'list' : mlist.real_name,
-                'addr' : mlist.real_name.lower() + '@' + mlist.host_name.lower(),
-                'host' : mlist.host_name.lower(),
+                'addr' : mlist.real_name.lower() + '@' + host,
+                'host' : host,
                 'desc' : quote(mlist.description),
                 'info' : quote(mlist.info),
                 'diff' : (mlist.default_member_moderation>0) + (mlist.generic_nonmember_action>0),