(cls)
| 396 | |
| 397 | @classmethod |
| 398 | def _get_app(cls): |
| 399 | if cls._app is None: |
| 400 | cls._app = current_app |
| 401 | if not cls.__bound__: |
| 402 | class="cm"># The app property's __set__ method is not called |
| 403 | class="cm"># if Task.app is set (on the class), so must bind on use. |
| 404 | cls.bind(cls._app) |
| 405 | return cls._app |
| 406 | app = class_property(_get_app, bind) |
| 407 | |
| 408 | @classmethod |
no test coverage detected