MCPcopy Index your code
hub / github.com/pyload/pyload / getEvents

Method getEvents

module/PullEvents.py:36–49  ·  view source on GitHub ↗
(self, uuid)

Source from the content-addressed store, hash-verified

34 del self.clients[n]
35
36 def getEvents(self, uuid):
37 events = []
38 validUuid = False
39 for client in self.clients:
40 if client.uuid == uuid:
41 client.lastActive = time()
42 validUuid = True
43 while client.newEvents():
44 events.append(client.popEvent().toList())
45 break
46 if not validUuid:
47 self.newClient(uuid)
48 events = [ReloadAllEvent("queue").toList(), ReloadAllEvent("collector").toList()]
49 return uniqify(events, repr)
50
51 def addEvent(self, event):
52 for client in self.clients:

Callers

nothing calls this directly

Calls 7

newClientMethod · 0.95
uniqifyFunction · 0.90
ReloadAllEventClass · 0.85
newEventsMethod · 0.80
popEventMethod · 0.80
appendMethod · 0.45
toListMethod · 0.45

Tested by

no test coverage detected