@staticmethod<EOL><INDENT>def get_user_data(user=None,group=None,data_kind=DINGOS_USER_DATA_TYPE_NAME):<DEDENT>
logger.debug("<STR_LIT>")<EOL>if not user.is_authenticated():<EOL><INDENT>user = None<EOL><DEDENT>try:<EOL><INDENT>user_config =  UserData.objects.get(user=user,group=group,data_kind=data_kind)<EOL>return user_config.retrieve()<EOL><DEDENT>except:<EOL><INDENT>return None<EOL><DEDENT>
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.