Lines 937-943
def _move(self, newdn, modify_childs=1, ignore_license=0):
|
Link Here
|
---|
|
937 |
raise |
937 |
raise |
938 |
|
938 |
|
939 |
def _remove(self, remove_childs=0): |
939 |
def _remove(self, remove_childs=0): |
940 |
univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, 'handlers/__init__._remove() called for %s' % self.dn) |
940 |
univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, 'handlers/__init__._remove() called for %r with remove_childs=%r' % (self.dn, remove_childs)) |
941 |
self.exceptions = [] |
941 |
self.exceptions = [] |
942 |
|
942 |
|
943 |
if _prevent_to_change_ad_properties and self._is_synced_object(): |
943 |
if _prevent_to_change_ad_properties and self._is_synced_object(): |
Lines 947-954
def _remove(self, remove_childs=0):
|
Link Here
|
---|
|
947 |
self.call_udm_property_hook('hook_ldap_pre_remove', self) |
947 |
self.call_udm_property_hook('hook_ldap_pre_remove', self) |
948 |
|
948 |
|
949 |
if remove_childs: |
949 |
if remove_childs: |
950 |
univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, 'handlers/__init__._remove() children of base dn %s' % self.dn) |
950 |
subelements = [] |
951 |
subelements = self.lo.search(base=self.dn, scope='one', attr=[]) |
951 |
if 'FALSE' not in self.lo.getAttr(self.dn, 'hasSubordinates'): |
|
|
952 |
univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, 'handlers/__init__._remove() children of base dn %s' % (self.dn,)) |
953 |
subelements = self.lo.search(base=self.dn, scope='one', attr=[]) |
952 |
if subelements: |
954 |
if subelements: |
953 |
try: |
955 |
try: |
954 |
for subolddn, suboldattrs in subelements: |
956 |
for subolddn, suboldattrs in subelements: |