(self, args)
| 353 | return ["INFO: Pushed package #%d to queue." % id] |
| 354 | |
| 355 | def event_pull(self, args): |
| 356 | if not args: |
| 357 | return ["ERROR: Pull package from queue like this: pull <package id>."] |
| 358 | |
| 359 | id = int(args[0]) |
| 360 | if not self.pyload.api.getPackageData(id): |
| 361 | return ["ERROR: Package #%d does not exist." % id] |
| 362 | |
| 363 | self.pyload.api.pullFromQueue(id) |
| 364 | return ["INFO: Pulled package #%d from queue to collector." % id] |
| 365 | |
| 366 | def event_c(self, args): |
| 367 | """ |
nothing calls this directly
no test coverage detected