def syncProperties(self, desc, copyMode=COPY_MODE_ALL):
        for propertyName, propertyValue in desc.iteritems():
            if copyMode == self.COPY_MODE_SKIP_LOCAL:
                if propertyName in self.LOCAL_PROPERTY_NAMES:
                    continue

            if self.hasProperty(propertyName) and (self.getProperty(propertyName) != propertyValue):
                #print 'syncing property %s: %r' % (propertyName, propertyValue)
                self.setProperty(propertyName, propertyValue)
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/affordanceitems.py/AffordanceItem.syncProperties/original