*If you don't work on or develop any CUD related components, you can ignore the
rest of this message.*

After the integration of the fix for:

        7003533 get_descendants should return an empty list when no objects
                are found

This represents a change in the API for the DataObjectBase/DataObject methods:

        get_descendants()
        get_children()
        find_path()
        delete_children()

The default behaviour has changed from generating an ObjectNotFoundError
exception to returning an empty list, but you can change this back to the
original behaviour should that be preferable on a case-by-case basis.

For each method above, an additional parameter called 'not_found_is_err' has
been added, which is a boolean value that, if:

- True

  Will generate an ObjectNotFoundError if an attempt to locate an object which
  doesn't exist.

- False  (Now the *Default*)

  Where there is a value returned, which is the case for all except
  delete_children(), then if nothing is found to match the criteria, it will
  return an empty list - [].

*Required Actions*

This change will require anyone depending on the ObjectNotFoundError to be
generated to modify their code since the default (as requested) is to NOT fire
the exception by default...

I made any relevant changes in the slim_source gate, but if you are using
components in the 'cud' gate, or any children of that, you may need to revisit
any code in this area to ensure correct behaviour.

Thanks,

Darren.

_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

Reply via email to