MCPcopy Create free account
hub / github.com/ImageEngine/cortex / update

Method update

python/IECore/MenuDefinition.py:135–138  ·  view source on GitHub ↗
( self, definition )

Source from the content-addressed store, hash-verified

133 ## Appends another MenuDefinition or dict to the end
134 # of the definition. Duplicate entries will be overwritten.
135 def update( self, definition ) :
136 for path, item in definition.items():
137 self.remove( path, False )
138 self.__items.append( ( path, item ) )
139
140 ## Removes all menu items from the definition.
141 def clear( self ) :

Callers 9

testMethod · 0.95
__tmpPrefixFunction · 0.45
keysMethod · 0.45
curriedFunctionFunction · 0.45
collectHashesWalkMethod · 0.45
testBlindDataToHeaderMethod · 0.45
testUpdateMethod · 0.45

Calls 3

removeMethod · 0.95
appendMethod · 0.80
itemsMethod · 0.45

Tested by 2

collectHashesWalkMethod · 0.36
testBlindDataToHeaderMethod · 0.36