@@ -787,32 +787,32 @@ def getDocumentation(self):
787787 else :
788788 return self .nodeDesc .__doc__
789789
790- def getNodeInfos (self ):
790+ def getNodeInfo (self ):
791791 if not self .nodeDesc :
792792 return []
793- infos = OrderedDict ([
793+ info = OrderedDict ([
794794 ("module" , self .nodeDesc .__module__ ),
795795 ("modulePath" , self .nodeDesc .plugin .path ),
796796 ])
797- # > Infos from the plugin module
797+ # > Info from the plugin module
798798 plugin_module = sys .modules .get (self .nodeDesc .__module__ )
799799 if getattr (plugin_module , "__author__" , None ):
800- infos ["author" ] = plugin_module .__author__
800+ info ["author" ] = plugin_module .__author__
801801 if getattr (plugin_module , "__license__" , None ):
802- infos ["license" ] = plugin_module .__license__
802+ info ["license" ] = plugin_module .__license__
803803 if getattr (plugin_module , "__version__" , None ):
804- infos ["version" ] = plugin_module .__version__
804+ info ["version" ] = plugin_module .__version__
805805 # > Overrides at the node-level
806806 if getattr (self .nodeDesc , "author" , None ):
807- infos ["author" ] = self .nodeDesc .author
807+ info ["author" ] = self .nodeDesc .author
808808 if getattr (self .nodeDesc , "version" , None ):
809- infos ["version" ] = self .nodeDesc .version
810- # > Additional node infos stored in a __nodeInfo__ parameter
811- additionalNodeInfos = getattr (self .nodeDesc , "__nodeInfo__" , None )
812- if additionalNodeInfos :
813- for key , value in additionalNodeInfos :
814- infos [key ] = value
815- return [{"key" : k , "value" : v } for k , v in infos .items ()]
809+ info ["version" ] = self .nodeDesc .version
810+ # > Additional node information stored in a __nodeInfo__ parameter
811+ additionalNodeInfo = getattr (self .nodeDesc , "__nodeInfo__" , None )
812+ if additionalNodeInfo :
813+ for key , value in additionalNodeInfo :
814+ info [key ] = value
815+ return [{"key" : k , "value" : v } for k , v in info .items ()]
816816
817817 @property
818818 def packageFullName (self ):
@@ -1767,7 +1767,7 @@ def _hasDisplayableShape(self):
17671767 defaultLabel = Property (str , getDefaultLabel , constant = True )
17681768 nodeType = Property (str , nodeType .fget , constant = True )
17691769 documentation = Property (str , getDocumentation , constant = True )
1770- nodeInfos = Property (Variant , getNodeInfos , constant = True )
1770+ nodeInfo = Property (Variant , getNodeInfo , constant = True )
17711771 positionChanged = Signal ()
17721772 position = Property (Variant , position .fget , position .fset , notify = positionChanged )
17731773 x = Property (float , lambda self : self ._position .x , notify = positionChanged )
0 commit comments