same as `getQueueData` for collector. :return: list of `PackageInfo`
(self)
| 571 | |
| 572 | @permission(PERMS.LIST) |
| 573 | def getCollectorData(self): |
| 574 | """same as `getQueueData` for collector. |
| 575 | |
| 576 | :return: list of `PackageInfo` |
| 577 | """ |
| 578 | return [PackageData(pack["id"], pack["name"], pack["folder"], pack["site"], |
| 579 | pack["password"], pack["queue"], pack["order"], |
| 580 | pack["linksdone"], pack["sizedone"], pack["sizetotal"], |
| 581 | links=[self._convertPyFile(x) for x in pack["links"].itervalues()]) |
| 582 | for pack in self.core.files.getCompleteData(Destination.Collector).itervalues()] |
| 583 | |
| 584 | |
| 585 | @permission(PERMS.ADD) |
no test coverage detected