MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / menu_items

Method menu_items

web/pgadmin/__init__.py:152–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

150
151 @property
152 def menu_items(self):
153 from operator import attrgetter
154
155 menu_items = defaultdict(list)
156 for module in self.submodules:
157 for key, value in module.menu_items.items():
158 menu_items[key].extend(value)
159 menu_items = dict((key, sorted(value, key=attrgetter('priority')))
160 for key, value in menu_items.items())
161 return menu_items
162
163 def register_logout_hook(self, module):
164 if hasattr(module, 'on_logout') and \

Callers

nothing calls this directly

Calls 1

extendMethod · 0.80

Tested by

no test coverage detected