def getProperty(self, child, key):
        """ Return the value for the property for child
        'child' with key 'key' """

        # First get the child's dictionary
        childDict = self.getInfoDict(child)
        if childDict:
            return childDict.get(key, None)
 Return the value for the property for child
        'child' with key 'key' 
recipes/Python/498249_Composite_designpattern_using/recipe-498249.py