Skip to content

Commit

Permalink
[#2618] Look at html shim and other vender stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 14, 2012
1 parent 4e8195a commit 987dde5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckan/config/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def make_app(global_conf, full_stack=True, static_files=True, **app_conf):
#app = QueueLogMiddleware(app)

# Fanstatic
if asbool(config.get('debug', False)):
if not asbool(config.get('debug', False)):
fanstatic_config = {
'versioning' : True,
'recompute_hashes' : True,
Expand Down
3 changes: 3 additions & 0 deletions ckan/html_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ def create_resource(path, lib_name, count):
resource = Resource(library, filename, **kw)
# add the resource to this module
fanstatic_name = '%s/%s' % (lib_name, filename)
print 'create resource %s' % fanstatic_name
setattr(module, fanstatic_name, resource)
return resource

Expand Down Expand Up @@ -365,6 +366,8 @@ def create_resource(path, lib_name, count):
base_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'public', 'base', 'javascript'))
create_library('base', base_path)

base_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'public', 'base', 'vendor'))
create_library('vendor', base_path)

### create our libraries here from any subdirectories
##for dirname, dirnames, filenames in os.walk(os.path.dirname(__file__)):
Expand Down
3 changes: 2 additions & 1 deletion ckan/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
#}
{%- block html5shim -%}
{# Temporary link until we get resource helper working #}
<!--[if lte IE 8]><script src="{% url_for_static '/base/vendor/html5.js' %}"></script><![endif]-->
{# <!--[if lte IE 8]><script src="{% url_for_static '/base/vendor/html5.js' %}"></script><![endif]--> #}
{% resource 'vendor/html5.js' %}
{%- endblock -%}

{#
Expand Down

0 comments on commit 987dde5

Please sign in to comment.