|
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): # type: () -> Dict[Text, univention.admin.property] |
| 237 |
return univention.admin.modules.get(self.module).property_descriptions |
| 238 |
|
| 237 |
def save(self): # type: () -> None |
239 |
def save(self): # type: () -> None |
| 238 |
"""Saves the current internal object state as old state for later comparison when e.g. modifying this object. |
240 |
"""Saves the current internal object state as old state for later comparison when e.g. modifying this object. |
| 239 |
|
241 |
|