@staticmethod<EOL><INDENT>def store_user_data(user=None, group=None,data_kind=DINGOS_USER_DATA_TYPE_NAME,user_data=None,iobject_name=None):<DEDENT>
if not user_data:<EOL><INDENT>user_data = {}<EOL><DEDENT>if not user.is_authenticated():<EOL><INDENT>user = None<EOL><DEDENT>user_config,created =  UserData.objects.get_or_create(user=user,group=group,data_kind=data_kind)<EOL>return user_config.store(user_data,iobject_type_name=data_kind,iobject_name=iobject_name)<EOL>
Returns either stored settings of a given user or default settings.
This behavior reflects the need for views to have some settings at
hand when running. The settings are returned as dict object.