From dde15772700da41ec931bb55087fbec6f30fab55 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Tue, 7 Sep 2010 10:08:19 -0400 Subject: associations -Refactored the associations code into a set of objects that are configured by the entities -Added support for associations that can be done in a single rpc -hostgroup to host and group to user associations working -Restructed sampledata so that the file is matched automatically by the RPC method name -The new ipa_cmd/sampledata scheme insists on there being sample data for any commands or the ipa_command fails. -Added sampledata files for all the calls we make -renamed several of the sampledata files to match their rpc calls -Started a pattern of refactoring where all the forms for the entity fall under a single object --- install/static/netgroup.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'install/static/netgroup.js') diff --git a/install/static/netgroup.js b/install/static/netgroup.js index 5659fbd21..88338b1db 100644 --- a/install/static/netgroup.js +++ b/install/static/netgroup.js @@ -16,7 +16,7 @@ var netgroup_details_list = ['nisdomainname', 'NIS Domain']]]]; -var netgroupDetailsForm = new DetailsForm("netgroup",netgroup_details_list,"cn","sampledata/netgroupshow.json") ; +var netgroupDetailsForm = new DetailsForm("netgroup",netgroup_details_list,"cn", ["details","hosts","groups","users"]) ; var netgroupAddProperties = @@ -32,7 +32,6 @@ function netgroupAddOptionsFunction (){ return options; } - var netgroupBuilder = new EntityBuilder("netgroup",netgroupAddProperties,netgroupAddOptionsFunction); @@ -43,4 +42,4 @@ var netgroupSearchColumns = [ {title:"Description", column:"description",render: renderSimpleColumn}]; var netgroupSearchForm = - new SearchForm("netgroup", "find", netgroupSearchColumns,"sampledata/netgrouplist.json"); + new SearchForm("netgroup", "find", netgroupSearchColumns); -- cgit