Skip to content

Commit

Permalink
[#2618] Custom render order added to Fanstatic Resource
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 7, 2012
1 parent 1259a51 commit 26f4336
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/html_resources/__init__.py
Expand Up @@ -68,6 +68,7 @@ def __init__(self, library, relpath,
debug=None,
dont_bundle=False,
minified=None,
custom_renderer_order=None,
custom_order=0):
self.library = library
fullpath = os.path.normpath(os.path.join(library.path, relpath))
Expand Down Expand Up @@ -99,6 +100,8 @@ def __init__(self, library, relpath,
self.order, _ = core.inclusion_renderers.get(
self.ext, (sys.maxint, None))

if custom_renderer_order:
self.order = custom_renderer_order
assert not isinstance(depends, basestring)
self.depends = set()
if depends is not None:
Expand Down

0 comments on commit 26f4336

Please sign in to comment.