|
666 |
# ... if property has no option or any required option is currently enabled |
666 |
# ... if property has no option or any required option is currently enabled |
667 |
options_match = bool(set(p.options) & set(self.options)) if getattr(self, 'options', []) and p.options else True |
667 |
options_match = bool(set(p.options) & set(self.options)) if getattr(self, 'options', []) and p.options else True |
668 |
if options_match and self.descriptions[name].default(self): |
668 |
if options_match and self.descriptions[name].default(self): |
669 |
self[name] |
669 |
self[name] = self.descriptions[name].default(self) |
670 |
|
670 |
|
671 |
# iterate over all properties and call checkLdap() of corresponding syntax |
671 |
# iterate over all properties and call checkLdap() of corresponding syntax |
672 |
self._call_checkLdap_on_all_property_syntaxes() |
672 |
self._call_checkLdap_on_all_property_syntaxes() |
Lines 760-766
def _modify(self, modify_childs=1, ignore_license=0):
|
Link Here
|
---|
|
760 |
# skip otherwise |
760 |
# skip otherwise |
761 |
if getattr(self, 'options', []) and p.options and (set(p.options) & set(self.options)): |
761 |
if getattr(self, 'options', []) and p.options and (set(p.options) & set(self.options)): |
762 |
if self.descriptions[name].default(self): |
762 |
if self.descriptions[name].default(self): |
763 |
self[name] |
763 |
self[name] = self.descriptions[name].default(self) |
764 |
|
764 |
|
765 |
# iterate over all properties and call checkLdap() of corresponding syntax |
765 |
# iterate over all properties and call checkLdap() of corresponding syntax |
766 |
self._call_checkLdap_on_all_property_syntaxes() |
766 |
self._call_checkLdap_on_all_property_syntaxes() |