Changeset View
Changeset View
Standalone View
Standalone View
pykolab/auth/ldap/__init__.py
Show First 20 Lines • Show All 2,068 Lines • ▼ Show 20 Lines | def _change_modify_user(self, entry, change): | ||||
else: | else: | ||||
self.imap.user_mailbox_rename( | self.imap.user_mailbox_rename( | ||||
old_canon_attr, | old_canon_attr, | ||||
entry[result_attribute] | entry[result_attribute] | ||||
) | ) | ||||
cache.get_entry(self.domain, entry) | cache.get_entry(self.domain, entry) | ||||
else: | else: | ||||
imap_mailbox = "user%s%s" % ( | if not self.imap.user_mailbox_exists(entry[result_attribute]): | ||||
self.imap.get_separator(), | |||||
entry[result_attribute] | |||||
) | |||||
if not self.imap.has_folder(imap_mailbox): | |||||
self.imap.user_mailbox_create( | self.imap.user_mailbox_create( | ||||
entry[result_attribute] | entry[result_attribute] | ||||
) | ) | ||||
self.user_quota( | self.user_quota( | ||||
entry, | entry, | ||||
"user%s%s" % ( | "user%s%s" % ( | ||||
self.imap.get_separator(), | self.imap.get_separator(), | ||||
▲ Show 20 Lines • Show All 1,070 Lines • Show Last 20 Lines |