'Set scope information.'

def set_scope(self, domain_id=None, project_id=None, trust=None, unscoped=None):

    if (domain_id and project_id):
        msg = _('Scoping    to    both    domain    and    project    is    not    allowed')
        raise ValueError(msg)
    if (domain_id and trust):
        msg = _('Scoping    to    both    domain    and    trust    is    not    allowed')
        raise ValueError(msg)
    if (project_id and trust):
        msg = _('Scoping    to    both    project    and    trust    is    not    allowed')
        raise ValueError(msg)
    self._scope_data = (domain_id, project_id, trust, unscoped)
