def setProperty(self, child, key, value):
        """ Set the value for the property 'key' for
        the child 'child' to 'value' """

        # First get the child's dictionary
        childDict = self.getInfoDict(child)
        if childDict:
            childDict[key] = value
 Set the value for the property 'key' for
        the child 'child' to 'value' 
recipes/Python/498249_Composite_designpattern_using/recipe-498249.py