Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Belgian Biodiversity Platform
cputils
Commits
d30cabd8
Commit
d30cabd8
authored
Apr 06, 2013
by
Julien Cigar
Browse files
import PageTemplateLoader later so that os.environ is taken into account
parent
4ebe99ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/chameleon_plugin.py
View file @
d30cabd8
...
...
@@ -4,7 +4,6 @@ import os
import
os.path
from
cherrypy.process
import
plugins
from
chameleon
import
PageTemplateLoader
__all__
=
[
'ChameleonTemplatePlugin'
]
...
...
@@ -29,6 +28,7 @@ class ChameleonTemplatePlugin(plugins.SimplePlugin):
elif
key
.
startswith
(
'loader.config.'
):
loader_config
[
key_without_prefix
]
=
value
from
chameleon
import
PageTemplateLoader
self
.
loader
=
PageTemplateLoader
(
loader_search_path
,
loader_default_extension
,
**
loader_config
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment