def _as_yaml(self, data, default_flow_style = True, status_code = 200, *args, **kwargs):
        """Render the returned dictionary as a YAML object."""
        import yaml
        if self._is_ajax and 'mimetype' not in kwargs:
            kwargs['mimetype'] = 'application/yaml';
        return self._print(yaml.dump(data, default_flow_style=default_flow_style), status_code=status_code, *args, **kwargs)
dataset/ETHPy150Open zeraien/django-url-framework/django_url_framework/controller.py/ActionController._as_yaml/original