def chained_contains(chained, id, contains=op.contains):
stores_with_read = [s for s in chained.stores if s._read]
if len(stores_with_read) == 0:
raise PermissionError('contains', chained, 'read')
for store in stores_with_read:
if store._read and contains(store, id):
return True
return False
评论列表
文章目录