def getAllItemsFromView(self, view, spacename): keyspace = SharedState.Keyspace("TakeHighestIdKeyType", spacename, 1) with SharedState.Transaction(view): return [(x[0], x[1].value()) for x in SharedState.iterItems(view, keyspace)]
def getIntrospectionContentsForView(self, view): for k, v in SharedState.iterItems(view, SharedState.getClientInfoKeyspace()): if v.value() != NativeJson.Json('disconnected'): yield int(k[1].toSimple())