MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / generate_ops

Method generate_ops

web/pgadmin/browser/utils.py:202–216  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

200
201 @classmethod
202 def generate_ops(cls):
203 cmds = []
204 for op in cls.operations:
205 idx = 0
206 for ops in cls.operations[op]:
207 meths = []
208 for meth in ops:
209 meths.append(meth.upper())
210 if len(meths) > 0:
211 cmds.append({
212 'cmd': op, 'req': (idx == 0),
213 'with_id': (idx != 2), 'methods': meths
214 })
215 idx += 1
216 return cmds
217
218 # Inherited class needs to modify these parameters
219 node_type = None

Callers 1

register_node_viewMethod · 0.80

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected