| 247 | # Check the existance of all the required arguments from parent_ids |
| 248 | # and return combination of has parent arguments, and has id arguments |
| 249 | def check_args(self, **kwargs): |
| 250 | has_id = has_args = True |
| 251 | for p in self.parent_ids: |
| 252 | if p['id'] not in kwargs: |
| 253 | has_args = False |
| 254 | break |
| 255 | |
| 256 | for p in self.ids: |
| 257 | if p['id'] not in kwargs: |
| 258 | has_id = False |
| 259 | break |
| 260 | |
| 261 | return has_args, has_id and has_args |
| 262 | |
| 263 | def dispatch_request(self, *args, **kwargs): |
| 264 | http_method = flask.request.method.lower() |