def __plugMetadataChanged( self, nodeTypeId, plugPath, key, plug ) :

		if plug is not None and not self.__parent.isSame( plug ) and not self.__parent.isSame( plug.parent() ) :
			return

		if not self.__node().isInstanceOf( nodeTypeId ) :
			return

		if key in (
			"divider",
			self.__layoutName + ":divider",
			self.__layoutName + ":index",
			self.__layoutName + ":section",
			"plugValueWidget:type"
		) :
			# we often see sequences of several metadata changes - so
			# we schedule a lazy update to batch them into one ui update.
			self.__layoutDirty = True
			self.__updateLazily()
		elif re.match( self.__layoutName + ":section:.*:summary", key ) :
			self.__summariesDirty = True
			self.__updateLazily()
dataset/ETHPy150Open ImageEngine/gaffer/python/GafferUI/PlugLayout.py/PlugLayout.__plugMetadataChanged/original