This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
|
__author__ = 'rolandh'
|
|
|
|
|
|
# noinspection PyUnusedLocal
|
|
class ClaimsMode(object):
|
|
def __init__(self, user2mode):
|
|
self.user2mode = user2mode
|
|
|
|
def aggregate(self, uid, info=None):
|
|
try:
|
|
if self.user2mode[uid] == "aggregate":
|
|
return True
|
|
except KeyError:
|
|
pass
|
|
|
|
return False
|