Assign a child resource to this resource.
resource_assigned_callback()to notify the parent of the assignment, if parent is not
None. Note that the resource to be assigned may have child resources, in which case you will be responsible for handling any checking, if necessary.
resource – The resource to assign.
location – The location of the resource, relative to this resource.
reassign – If
False, an error will be raised if the resource to be assigned is already assigned to this resource. Defaults to