Fixed entity metadata resolution.

The current code assumes that an entity will always have a corresponding
LDAPObject on the server, so it looks for the metadata in a fixed location.
This assumption doesn't work for HBAC Test since it is a Command, not an
LDAPObject, so the metadata has to be obtained from a different location.
A new method get_default_metadata() has been added to allow each entity
to find the metadata from the correct location.

Ticket #388
This commit is contained in:
Endi Sukma Dewata
2011-11-16 21:07:20 -06:00
committed by Endi S. Dewata
parent 6f0c16e428
commit a8ea42bda8
19 changed files with 148 additions and 106 deletions

View File

@@ -29,9 +29,10 @@ IPA.config.entity = function(spec) {
var that = IPA.entity(spec);
that.init = function(params) {
that.init = function() {
that.entity_init();
params.builder.details_facet({
that.builder.details_facet({
title: IPA.metadata.objects.config.label,
sections: [
{