summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/entity.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-04-22 15:17:19 +0200
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:29 +0200
commitb184e24f912dcde3484aeafec1f497a130598991 (patch)
treea1d72f1883a234ddca9299f11e9117103d1d34ce /install/ui/src/freeipa/entity.js
parentc3615f0ebc999c8c77c7acc354cc2f776c48893b (diff)
downloadfreeipa-b184e24f912dcde3484aeafec1f497a130598991.tar.gz
freeipa-b184e24f912dcde3484aeafec1f497a130598991.tar.xz
freeipa-b184e24f912dcde3484aeafec1f497a130598991.zip
Removal of IPA.metadata usages
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/ui/src/freeipa/entity.js')
-rw-r--r--install/ui/src/freeipa/entity.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/install/ui/src/freeipa/entity.js b/install/ui/src/freeipa/entity.js
index e0e5182b0..f132f325c 100644
--- a/install/ui/src/freeipa/entity.js
+++ b/install/ui/src/freeipa/entity.js
@@ -23,6 +23,7 @@
define([
'dojo/_base/lang',
+ './_base/metadata_provider',
'./_base/Singleton_registry',
'./builder',
'./ipa',
@@ -31,7 +32,8 @@ define([
'./text',
'./facets',
'./facet'],
- function(lang, Singleton_registry, builder, IPA, $, reg, text, facet_reg) {
+ function(lang, metadata_provider, Singleton_registry, builder,
+ IPA, $, reg, text, facet_reg) {
var exp = {};
@@ -88,7 +90,7 @@ exp.entity = IPA.entity = function(spec) {
};
that.get_default_metadata = function() {
- return IPA.metadata.objects[that.name];
+ return metadata_provider.get('@mo:'+that.name);
};
that.get_containing_entity = function() {