Skip to content

Commit

Permalink
[#2961] Remove json and csv from loadable formats
Browse files Browse the repository at this point in the history
They should be loaded with their own extensions. They were just on this
list because of old code and they are not rendered nicely when directly
laoded on an iframe.
XML based formats are kept, but they also should be shown with a
particular extension (See #226)
  • Loading branch information
amercader committed Dec 19, 2012
1 parent 40f5997 commit 92aeb84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ckan/lib/datapreview.py
Expand Up @@ -12,7 +12,7 @@
import ckan.plugins as p

DEFAULT_DIRECT_EMBED = ['png', 'jpg', 'gif']
DEFAULT_LOADABLE_IFRAME = ['html', 'htm', 'rdf+xml', 'owl+xml', 'xml', 'n3', 'n-triples', 'turtle', 'plain', 'atom', 'csv', 'tsv', 'rss', 'txt', 'json']
DEFAULT_LOADABLE_IFRAME = ['html', 'htm', 'rdf+xml', 'owl+xml', 'xml', 'n3', 'n-triples', 'turtle', 'plain', 'atom', 'rss', 'txt']


def compare_domains(urls):
Expand Down
4 changes: 2 additions & 2 deletions doc/configuration.rst
Expand Up @@ -207,9 +207,9 @@ ckan.preview.loadable
^^^^^^^^^^^^^^^^^^^^^

Example::
ckan.preview.loadable = html htm rdf+xml owl+xml xml n3 n-triples turtle plain atom csv tsv rss txt json
ckan.preview.loadable = html htm rdf+xml owl+xml xml n3 n-triples turtle plain atom rss txt

Default value: ``html htm rdf+xml owl+xml xml n3 n-triples turtle plain atom csv tsv rss txt json``
Default value: ``html htm rdf+xml owl+xml xml n3 n-triples turtle plain atom rss txt``

Defines the resource formats which should be loaded directly in an `iframe`
tag when previewing them.
Expand Down

0 comments on commit 92aeb84

Please sign in to comment.