equal
deleted
inserted
replaced
208 """ |
208 """ |
209 if not isinstance(password, basestring) or not password: |
209 if not isinstance(password, basestring) or not password: |
210 raise AErr(_(u"Could not accept password: '%s'") % password, |
210 raise AErr(_(u"Could not accept password: '%s'") % password, |
211 ACCOUNT_MISSING_PASSWORD) |
211 ACCOUNT_MISSING_PASSWORD) |
212 self._passwd = password |
212 self._passwd = password |
213 |
|
214 def set_transport(self, transport): |
|
215 """Set the transport for the new Account. |
|
216 |
|
217 If you want to update the transport of an existing Account use |
|
218 Account.modify(). |
|
219 |
|
220 Argument: |
|
221 |
|
222 `transport` : basestring |
|
223 The string representation of the transport, e.g.: 'dovecot:' |
|
224 """ |
|
225 self._transport = Transport(self._dbh, transport=transport) |
|
226 |
213 |
227 def enable(self, *services): |
214 def enable(self, *services): |
228 """Enable all or the given service/s for the Account. |
215 """Enable all or the given service/s for the Account. |
229 |
216 |
230 Possible *services* are: 'imap', 'pop3', 'sieve' and 'smtp'. |
217 Possible *services* are: 'imap', 'pop3', 'sieve' and 'smtp'. |