Lines 206-213
class simpleLdap(object):
|
Link Here
|
---|
|
206 |
m = univention.admin.modules.get(self.module) |
206 |
m = univention.admin.modules.get(self.module) |
207 |
if not hasattr(self, 'mapping'): |
207 |
if not hasattr(self, 'mapping'): |
208 |
self.mapping = getattr(m, 'mapping', None) |
208 |
self.mapping = getattr(m, 'mapping', None) |
209 |
if not hasattr(self, 'descriptions'): |
|
|
210 |
self.descriptions = getattr(m, 'property_descriptions', None) |
211 |
|
209 |
|
212 |
self.oldattr = {} # type: _Attributes |
210 |
self.oldattr = {} # type: _Attributes |
213 |
if attributes: |
211 |
if attributes: |
Lines 234-239
class simpleLdap(object):
|
Link Here
|
---|
|
234 |
|
232 |
|
235 |
self._validate_superordinate(False) |
233 |
self._validate_superordinate(False) |
236 |
|
234 |
|
|
|
235 |
@property |
236 |
def descriptions(self): |
237 |
m = univention.admin.modules.get(self.module) |
238 |
return getattr(self, '__descriptions', getattr(m, 'property_descriptions', None)) |
239 |
|
240 |
@descriptions.setter |
241 |
def descriptions(self, descriptions): |
242 |
self.__descriptions = descriptions |
243 |
|
237 |
def save(self): # type: () -> None |
244 |
def save(self): # type: () -> None |
238 |
"""Saves the current internal object state as old state for later comparison when e.g. modifying this object. |
245 |
"""Saves the current internal object state as old state for later comparison when e.g. modifying this object. |
239 |
|
246 |
|