def umc_module_for_edit(module, object_dn, superordinate=None):
 mod = module_by_name(module)
 objects = get_umc_admin_objects()
 position = position_base_dn()
 position.setDn(ldap_dn_tree_parent(object_dn))
 obj = objects.get(mod, config(), uldap(), position=position, superordinate=superordinate, dn=object_dn)
 obj.open()
 return obj

def umc_module_for_edit ( module , object_dn , superordinate = None ) : mod = module_by_name ( module ) objects = get_umc_admin_objects ( ) position = position_base_dn ( ) position . setDn ( ldap_dn_tree_parent ( object_dn ) ) obj = objects . get ( mod , config ( ) , uldap ( ) , position = position , superordinate = superordinate , dn = object_dn ) obj . open ( ) return obj
returns an umc module object prepared for editing an existing entry .