[Freeipa-devel] [PATCH] 573 use context to determine RequirementsErrors attributes
Rob Crittenden
rcritten at redhat.com
Tue Oct 12 02:31:49 UTC 2010
Use context to decide which name to return on RequirementsErrors
When a Requirement fails we throw an exception including the name of the
field that is missing. To make the command-line friendlier we have a
cli_name defined which may or may not match the LDAP attribute. This can
be confusing if you are using ipalib directly because the attribute name
missing may not match what is actually required (desc vs description is
a good example).
If you use the context 'cli' then it will throw exceptions using
cli_name. If you use any other context it will use the name of the
attribute.
ticket 187
rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-573-parameter.patch
Type: application/mbox
Size: 7727 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20101011/6d280c9a/attachment.mbox>
More information about the Freeipa-devel
mailing list