MCPcopy
hub / github.com/pyload/pyload / UpdateEvent

Class UpdateEvent

module/PullEvents.py:72–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 self.events.append(event)
71
72class 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
83class RemoveEvent():
84 def __init__(self, itype, iid, destination):

Callers 7

notifyChangeMethod · 0.90
notifyChangeMethod · 0.90
updateLinkMethod · 0.90
updatePackageMethod · 0.90
restartPackageMethod · 0.90
restartFileMethod · 0.90
updateFileInfoMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected