add private method addItemMenu

This commit is contained in:
Valentin CZERYBA 2023-07-26 19:22:43 +02:00
parent 8de7485775
commit b7493206a2

View File

@ -366,4 +366,8 @@ class WPMenu:
def addItemMenu(self, menu, idMenu): def addItemMenu(self, menu, idMenu):
self._logger.info("{0} : add item to menu : {1}".format(self._name, idMenu)) self._logger.info("{0} : add item to menu : {1}".format(self._name, idMenu))
for i in menu:
parent = self._createItemMenu(idMenu, i, parent)
for j in menu["children"]:
self._createItemMenu(idMenu, i, parent)