Lines 465-474
def update_extended_attributes(lo, module, position):
|
Link Here
|
---|
|
465 |
) |
465 |
) |
466 |
|
466 |
|
467 |
# add LDAP mapping |
467 |
# add LDAP mapping |
468 |
if attrs['univentionUDMPropertyLdapMapping'][0].lower() != 'objectClass'.lower(): |
468 |
attribute_name = attrs['univentionUDMPropertyLdapMapping'][0] |
469 |
module.mapping.register(pname, attrs['univentionUDMPropertyLdapMapping'][0], unmap_method, map_method) |
469 |
if attribute_name.lower() != 'objectClass'.lower(): |
|
|
470 |
already_existing_map_name = module.mapping.mapName(pname) |
471 |
already_existing_unmap_name = module.mapping.unmapName(attribute_name) |
472 |
if already_existing_map_name and already_existing_map_name != attribute_name: |
473 |
pass |
474 |
elif already_existing_unmap_name and already_existing_unmap_name != pname: |
475 |
pass |
476 |
else: |
477 |
module.mapping.register(pname, attribute_name, unmap_method, map_method) |
470 |
else: |
478 |
else: |
471 |
module.mapping.register(pname, attrs['univentionUDMPropertyLdapMapping'][0], univention.admin.mapping.nothing, univention.admin.mapping.nothing) |
479 |
module.mapping.register(pname, attribute_name, univention.admin.mapping.nothing, univention.admin.mapping.nothing) |
472 |
|
480 |
|
473 |
if hasattr(module, 'layout'): |
481 |
if hasattr(module, 'layout'): |
474 |
tabname = attrs.get('univentionUDMPropertyTranslationTabName;entry-%s' % lang, attrs.get('univentionUDMPropertyLayoutTabName', [_('Custom')]))[0] |
482 |
tabname = attrs.get('univentionUDMPropertyTranslationTabName;entry-%s' % lang, attrs.get('univentionUDMPropertyLayoutTabName', [_('Custom')]))[0] |