def umc_module_for_add(module, container_dn, superordinate=None):
 mod = module_by_name(module)
 position = position_base_dn()
 position.setDn(container_dn)
 obj = mod.object(config(), uldap(), position, superordinate=superordinate)
 obj.open()
 return obj

def umc_module_for_add ( module , container_dn , superordinate = None ) : mod = module_by_name ( module ) position = position_base_dn ( ) position . setDn ( container_dn ) obj = mod . object ( config ( ) , uldap ( ) , position , superordinate = superordinate ) obj . open ( ) return obj
returns an umc module object prepared for creating a new entry .