VirtualMailManager/account.py
branchv0.6.x
changeset 543 1b3bdce0bf87
parent 539 5806fb74130b
child 559 cc0f67f99780
--- a/VirtualMailManager/account.py	Sat Apr 14 22:52:40 2012 +0200
+++ b/VirtualMailManager/account.py	Sat Apr 14 22:53:21 2012 +0200
@@ -479,7 +479,7 @@
         raise AErr(_(u'UID must be greater than 0.'), INVALID_ARGUMENT)
     dbc = dbh.cursor()
     dbc.execute("SELECT local_part||'@'|| domain_name.domainname AS address, "
-                "uid, users.gid FROM users LEFT JOIN domain_name ON "
+                "uid, users.gid, note FROM users LEFT JOIN domain_name ON "
                 "(domain_name.gid = users.gid AND is_primary) WHERE uid = %s",
                 (uid,))
     info = dbc.fetchone()
@@ -487,7 +487,7 @@
     if not info:
         raise AErr(_(u"There is no account with the UID: '%d'") % uid,
                    NO_SUCH_ACCOUNT)
-    info = dict(zip(('address', 'uid', 'gid'), info))
+    info = dict(zip(('address', 'uid', 'gid', 'note'), info))
     return info
 
 del _, cfg_dget