View | Details | Raw Unified | Return to bug 16966
Collapse All | Expand All

(-)a/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py (+8 lines)
 Lines 2943-2948   def __init__(self, co, lo, position, dn='', superordinate=None, attributes=[]): Link Here 
2943
2943
2944
		simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes)
2944
		simpleLdap.__init__(self, co, lo, position, dn, superordinate, attributes)
2945
2945
2946
	def _ldap_post_remove(self):
2947
		super(simpleLdap, self)._ldap_post_remove()
2948
		for object_dn in self.lo.searchDn(filter_format('univentionPolicyReference=%s', [self.dn])):
2949
			try:
2950
				self.lo.modify(object_dn, [('univentionPolicyReference', self.dn, None)])
2951
			except (univention.admin.uexceptions.base, ldap.LDAPError) as exc:
2952
				univention.debug.debug(univention.debug.ADMIN, univention.debug.ERROR, 'Could not remove policy reference %r from %r: %s' % (self.dn, object_dn, exc))
2953
2946
	def copyIdentifier(self, from_object):
2954
	def copyIdentifier(self, from_object):
2947
		"""Activate the result mode and set the referring object"""
2955
		"""Activate the result mode and set the referring object"""
2948
2956

Return to bug 16966