186 keys = ['name', 'uid', 'gid', 'maildir', 'transport', 'smtp', |
186 keys = ['name', 'uid', 'gid', 'maildir', 'transport', 'smtp', |
187 'pop3', 'imap', 'managesieve'] |
187 'pop3', 'imap', 'managesieve'] |
188 info = dict(zip(keys, info)) |
188 info = dict(zip(keys, info)) |
189 for service in ['smtp', 'pop3', 'imap', 'managesieve']: |
189 for service in ['smtp', 'pop3', 'imap', 'managesieve']: |
190 if bool(info[service]): |
190 if bool(info[service]): |
191 info[service] = 'enabled' |
191 info[service] = _('enabled') |
192 else: |
192 else: |
193 info[service] = 'disabled' |
193 info[service] = _('disabled') |
194 info['address'] = self._addr |
194 info['address'] = self._addr |
195 info['maildir'] = '%s/%s/%s' % (self._base, info['uid'], |
195 info['maildir'] = '%s/%s/%s' % (self._base, info['uid'], |
196 MailLocation(self._dbh, |
196 MailLocation(self._dbh, |
197 mid=info['maildir']).getMailLocation()) |
197 mid=info['maildir']).getMailLocation()) |
198 info['transport'] = Transport(self._dbh, |
198 info['transport'] = Transport(self._dbh, |