[Linux-ha-dev] [mgmt][Patch]Implement common classes for adding and viewing kinds of objects.

Yan Gao ygao at novell.com
Fri Jan 11 00:20:29 MST 2008


Hi,

I've built up a common model for adding and viewing objects in hb_gui.
It works as the following:

1. Get crm.dtd file from server end

2. Parse DTD in haclient

3. Dynamically render appropriate gtk widgets according to the DTD
element

4. Add enumeration values to drop-down list. List and mark up the
default values if have.

4. Use common functions to "show_values" and "get_values"

I've rewritten order and colocation based on this model, and unified the
interface style for viewing and adding objects.


Additional features:
1. Dynamically generating description for order and colocation according
to user's input.

2. Dynamically adding supported actions according to the metadata of the
resource been selected.

3. Verify the existence of required attributes 

4. Prevent invalid value of a enumeration atribute from being inputted.


Additional modification:
1 . Modify the protocol of getting and updating rsc_order and
rsc_colocation to support random number of attributes.

2. Remove order and colocation from glade. Add cmnobj_view into glade

Bug fix:
Fix a bug of deleting constaints

Attached the patch. Any comments will be appreciated.

Signed-off-by: Yan Gao <ygao at novell.com>

Regards
-- 
Yan Gao
China R&D Software Engineer
ygao at novell.com

Novell, Inc.
SUSE® Linux Enterprise 10
Your Linux is ready
http://www.novell.com/linux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: heartbeat-0111-common-object.patch
Type: text/x-patch
Size: 71566 bytes
Desc: not available
Url : http://lists.community.tummy.com/pipermail/linux-ha-dev/attachments/20080111/20c5f186/heartbeat-0111-common-object-0001.bin


More information about the Linux-HA-Dev mailing list