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

(-)a/ucs/management/univention-directory-manager/uniconf/modedit.py (-16 / +5 lines)
 Lines 579-585   class modedit(unimodule.unimodule): Link Here 
579
				self.save.put('edit_object', self.object)
579
				self.save.put('edit_object', self.object)
580
580
581
				# policy select box
581
				# policy select box
582
				pathlist=[]
582
				policydnlist=[]
583
583
584
				# receive path info from 'cn=directory,cn=univention,<current domain>' object
584
				# receive path info from 'cn=directory,cn=univention,<current domain>' object
585
				pathResult = self.lo.get('cn=directory,cn=univention,'+self.position.getDomain())
585
				pathResult = self.lo.get('cn=directory,cn=univention,'+self.position.getDomain())
 Lines 589-612   class modedit(unimodule.unimodule): Link Here 
589
				if pathResult.has_key(infoattr) and pathResult[infoattr]:
589
				if pathResult.has_key(infoattr) and pathResult[infoattr]:
590
					for i in pathResult[infoattr]:
590
					for i in pathResult[infoattr]:
591
						try:
591
						try:
592
							self.lo.searchDn(base=i, scope='base')
592
							for policydn, policyattr in self.lo.search(base=i, scope="domain"):
593
							pathlist.append(i)
593
								if univention.admin.modules.recognize(current_module, policydn, policyattr):
594
									if not policydn in policydnlist: # if containers and their subcontainers are in i we get results twice
595
										policydnlist.append(policydn)
594
						except:
596
						except:
595
							pass
597
							pass
596
598
597
				policydnlist=[]
598
				for i in pathlist:
599
					try:
600
						policydns=self.lo.searchDn(base=i, scope="domain")
601
						for policydn in policydns:
602
							if univention.admin.modules.recognize(current_module, policydn, self.lo.get(policydn)):
603
								if not policydn in policydnlist: # if containers and their subcontainers are in pathlist we get results twice
604
									policydnlist.append(policydn)
605
							else:
606
								pass
607
					except:
608
						pass
609
610
				displaypolicydnlist=[]
599
				displaypolicydnlist=[]
611
				if policydnlist:
600
				if policydnlist:
612
					univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, "modedit policydnlist %s" % (policydnlist))
601
					univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, "modedit policydnlist %s" % (policydnlist))

Return to bug 14861