@staticmethod
def set_preference_static(request, prefname, value):
    """
        Sets a perference value
        """
    full_name = 'exordium__%s' % prefname
    if request.user.is_authenticated:
        request.user.preferences[full_name] = value
    else:
        request.session[full_name] = value
