(self, timer_type=None)
| 83 | self._allowed_timer_types = TIMER_TRIGGER_TYPES.keys() |
| 84 | |
| 85 | def get_all(self, timer_type=None): |
| 86 | if timer_type and timer_type not in self._allowed_timer_types: |
| 87 | msg = "Timer type %s not in supported types - %s." % ( |
| 88 | timer_type, |
| 89 | self._allowed_timer_types, |
| 90 | ) |
| 91 | abort(http_client.BAD_REQUEST, msg) |
| 92 | |
| 93 | t_all = self._timers.get_all(timer_type=timer_type) |
| 94 | LOG.debug("Got timers: %s", t_all) |
| 95 | return t_all |
| 96 | |
| 97 | def get_one(self, ref_or_id, requester_user): |
| 98 | try: |