(cls)
| 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 |
no test coverage detected