def __get_devilryrole_for_requestuser(self):
    period = self.request.cradmin_role
    devilryrole = PeriodPermissionGroup.objects.get_devilryrole_for_user_on_period(user=self.request.user, period=period)
    if (devilryrole is None):
        raise ValueError('Could not find a devilryrole for request.user. This must be a bug in get_rolequeryset().')
    return devilryrole
def __get_devilryrole_for_requestuser(self):
    period = self.request.cradmin_role
    devilryrole = PeriodPermissionGroup.objects.get_devilryrole_for_user_on_period(user=self.request.user, period=period)
    if (devilryrole is None):
        raise ValueError('Could not find a devilryrole for request.user. This must be a bug in get_rolequeryset().')
    return devilryrole