-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved previewable types to os.environ
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -343,6 +343,10 @@ def genshi_lookup_attr(cls, obj, key): | |
if not model.meta.engine: | ||
model.init_model(engine) | ||
|
||
# set which data types can be previewed natively | ||
os.environ['DIRECT_EMBEDS'] = 'png, jpg, gif' | ||
os.environ['LOADABLE'] = '''html, htm, rdf+xml, owl+xml, xml, | ||
n3, n-triples, turtle, plain, atom, tsv, rss, txt, json''' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
domoritz
Author
Contributor
|
||
|
||
for plugin in p.PluginImplementations(p.IConfigurable): | ||
plugin.configure(config) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I was meaning in the application rather than the os,environ maybe I was not very clear you probably want it to be in the config see what other things do in that file eg template paths