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

(-)modules/univention/admincli/admin.py (-1 / +4 lines)
 Lines 31-37    Link Here 
31
# <http://www.gnu.org/licenses/>.
31
# <http://www.gnu.org/licenses/>.
32
32
33
33
34
import sys, getopt, types, re, codecs, string, time, base64, os, subprocess
34
import sys, getopt, types, re, codecs, string, time, base64, os, subprocess, ldap
35
35
36
import univention.debug
36
import univention.debug
37
37
 Lines 878-883    Link Here 
878
		except univention.admin.uexceptions.noObject:
878
		except univention.admin.uexceptions.noObject:
879
			out.append('E: object not found')
879
			out.append('E: object not found')
880
			return out + ["OPERATION FAILED"]
880
			return out + ["OPERATION FAILED"]
881
		except ldap.NO_SUCH_OBJECT:
882
			out.append('E: object not found: %s' % dn)
883
			return out + ['OPERATION FAILED']
881
884
882
		object.open()
885
		object.open()
883
		if hasattr(object,'open_warning') and object.open_warning:
886
		if hasattr(object,'open_warning') and object.open_warning:
(-)modules/univention/admin/handlers/__init__.py (-1 / +1 lines)
 Lines 482-488    Link Here 
482
		if attributes:
482
		if attributes:
483
			self.oldattr = attributes
483
			self.oldattr = attributes
484
		else:
484
		else:
485
			self.oldattr=self.lo.get(self.dn)
485
			self.oldattr=self.lo.get(dn=self.dn, attr=[], required=True)
486
		if self.oldattr:
486
		if self.oldattr:
487
			self._exists = True
487
			self._exists = True
488
			oldinfo=univention.admin.mapping.mapDict(self.mapping, self.oldattr)
488
			oldinfo=univention.admin.mapping.mapDict(self.mapping, self.oldattr)

Return to bug 25174