0006-misc-search-endpoints-on-model-not-on-the-instance.patch
passerelle/base/models.py | ||
---|---|---|
280 | 280 | |
281 | 281 |
def get_endpoints_infos(self): |
282 | 282 |
endpoints = [] |
283 |
for name, method in inspect.getmembers(self, predicate=inspect.ismethod):
|
|
283 |
for name, method in inspect.getmembers(type(self), predicate=inspect.isfunction):
|
|
284 | 284 |
if hasattr(method, 'endpoint_info'): |
285 | 285 |
method.endpoint_info.object = self |
286 | 286 |
endpoint_name = method.endpoint_info.name |
287 |
- |