Skip to content

Commit

Permalink
[#2618] Futher code reduction
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 28, 2012
1 parent 92b23f9 commit 81ce1e9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ckan/lib/fanstatic_resources.py
Expand Up @@ -88,17 +88,12 @@ def create_resource(path, lib_name, count, inline=False):
if path in IE_conditionals:
other_browsers = ('others' in IE_conditionals[path])
condition = IE_conditionals[path][0]
if inline:
if inline or condition:
kw['renderer'] = fanstatic_extensions.CkanCustomRenderer(
condition=condition,
script=inline,
renderer=renderer,
other_browsers=other_browsers)
elif condition:
kw['renderer'] = fanstatic_extensions.CkanCustomRenderer(
condition=condition,
renderer=renderer,
other_browsers=other_browsers)
resource = Resource(library, path, **kw)

# Add our customised ordering
Expand Down

0 comments on commit 81ce1e9

Please sign in to comment.