def __init__(self,
                 user_field=None,
                 collaborators_query=None,
                 collaborators_filter=None,
                 any_permission=False,
                 add_permission=False,
                 change_permission=False,
                 delete_permission=False):
        if isinstance(collaborators_query, basestring):
            self.collaborators_queries = [collaborators_query]
        else:
            self.collaborators_queries = collaborators_query
        if isinstance(collaborators_filter, dict):
            self.collaborators_filters = [collaborators_filter] or [{}]
        else:
            self.collaborators_filters = collaborators_filter
        self.any_permission = any_permission
        self.add_permission = add_permission
        self.change_permission = change_permission
        self.delete_permission = delete_permission
        self.user_field = user_field
Constructor
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/core/permissions.py/FilteredCollaboratorsPermissionLogic.__init__