コード例 #1
0
	def _unregister_attributes(self, app, args):
		attributes, __, options = get_extended_attributes(app)
		if attributes or options:
			lo, pos = self._get_ldap_connection(args)
			for attribute in attributes:
				remove_extended_attribute(attribute, lo, pos)
			for option in options:
				remove_extended_option(option, lo, pos)
コード例 #2
0
	def _unregister_attributes(self, app, args):
		attributes, __ = get_extended_attributes(app)
		if attributes:
			lo, pos = self._get_ldap_connection(args)
			ldap_object = get_app_ldap_object(app, lo, pos)
			if ldap_object.get_siblings():
				self.debug('Not removing attributes, App is still installed somewhere')
				return
			for attribute in attributes:
				remove_extended_attribute(attribute, lo, pos)