| Total Complexity | 1 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """ |
||
| 14 | class LoadScheduleCommand(Command): |
||
| 15 | """ |
||
| 16 | Requests the controller to load schedule definitions |
||
| 17 | |||
| 18 | load_schedule |
||
| 19 | {schedule.xml?* : The schedule(s) to load} |
||
| 20 | """ |
||
| 21 | |||
| 22 | # ------------------------------------------------------------------------------------------------------------------ |
||
| 23 | def handle(self): |
||
| 24 | """ |
||
| 25 | Executes the load schedule command. |
||
| 26 | """ |
||
| 27 | self.output = EnarkshStyle(self.input, self.output) |
||
| 28 | |||
| 29 | client = LoadScheduleClient(self.output) |
||
| 30 | ret = client.main(self.input.get_argument('schedule.xml')) |
||
| 31 | |||
| 32 | return ret |
||
| 33 | |||
| 35 |