| 70 | self.events.append(event) |
| 71 | |
| 72 | class UpdateEvent(): |
| 73 | def __init__(self, itype, iid, destination): |
| 74 | assert itype == "pack" or itype == "file" |
| 75 | assert destination == "queue" or destination == "collector" |
| 76 | self.type = itype |
| 77 | self.id = iid |
| 78 | self.destination = destination |
| 79 | |
| 80 | def toList(self): |
| 81 | return ["update", self.destination, self.type, self.id] |
| 82 | |
| 83 | class RemoveEvent(): |
| 84 | def __init__(self, itype, iid, destination): |
no outgoing calls
no test coverage detected