[Freeipa-devel] [PATCH] Multicolumn association facet

Endi Sukma Dewata edewata at redhat.com
Tue Nov 30 19:21:01 UTC 2010


Hi,

Please review the attached patch. Thanks!

https://fedorahosted.org/reviewboard/r/111/

The association facet has been modified to support multiple columns.
By default the facet will have one column which is the primary key of
the associated object (e.g. username of a group member), so the
existing code will work like before. Other fields (e.g. user's full
name) can be added by subclassing the ipa_association_facet class and
specifying the additional columns to display. These additional fields
will be retrieved using a batch operation.

Previously a single association facet instance will be used for all
associations in an entity. Now each association will have its own
association facet. This way each association facet can be customized
differently as needed. The <entity>-enroll URL parameter has been
removed because it's no longer needed.

The ipa_entity.create_association_facets() is provided to generate
the default association facets with one column for the primary key.

The column click handler has been moved out of ipa_column to provide
more flexibility for customization.

The get_action_panel() and get_client_area() have been modified to
search within the entity's container.

The group entity has been fully converted to use the new UI framework.

Association facets that have been modified to use multiple columns are:
  - User Group's member_user
  - HBAC Service Group's member_hbacsvc
  - SUDO Command Group's member_sudocmd
  - Service's managedby_host

New test data files have been added. Unit tests have been updated.

-- 
Endi S. Dewata
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-edewata-0041-Multicolumn-association-facet.patch
Type: text/x-patch
Size: 72484 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20101130/fa8502cc/attachment.bin>


More information about the Freeipa-devel mailing list