View | Details | Raw Unified | Return to bug 38110 | Differences between
and this patch

Collapse All | Expand All

(-)a/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py (-3 / +7 lines)
 Lines 553-559   def _not_implemented_error(self, *args, **kwargs): Link Here 
553
553
554
class simpleLdap(base):
554
class simpleLdap(base):
555
555
556
	def __init__(self, co, lo, position, dn='', superordinate=None, attributes = [] ):
556
	def __init__(self, co, lo, position, dn='', superordinate=None, attributes=None):
557
		global s4connector_present
557
		global s4connector_present
558
		global s4connector_search
558
		global s4connector_search
559
559
 Lines 575-584   def __init__(self, co, lo, position, dn='', superordinate=None, attributes = [] Link Here 
575
					s4connector_present = False
575
					s4connector_present = False
576
		self.s4connector_present = s4connector_present
576
		self.s4connector_present = s4connector_present
577
577
578
		self.oldattr = {}
578
		if attributes:
579
		if attributes:
579
			self.oldattr = attributes
580
			self.oldattr = attributes
580
		else:
581
		elif self.dn:
581
			self.oldattr=self.lo.get(self.dn)
582
			try:
583
				self.oldattr = self.lo.get(self.dn, required=True)
584
			except ldap.NO_SUCH_OBJECT:
585
				raise univention.admin.uexceptions.noObject(self.dn)
582
		if self.oldattr:
586
		if self.oldattr:
583
			self._exists = True
587
			self._exists = True
584
			oldinfo=univention.admin.mapping.mapDict(self.mapping, self.oldattr)
588
			oldinfo=univention.admin.mapping.mapDict(self.mapping, self.oldattr)

Return to bug 38110