Add a convenience function for getting static file URLs for extensions.

Review Request #7854 — Created Jan. 7, 2016 and submitted

Information

Djblets
release-0.10.x

Reviewers

This introduces Extension.get_static_url(), which takes a static media
file bundled with the extension and returns the URL for it. This is
equivalent to what the ext_static template tag does, and in fact that
template tag has been updated to use this. It's much easier now to
reference extension-provided static media files outside of templates.

Tested that templates were still able to reference the static files.

Made use of the new function in some of the new integrations work.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/extensions/templatetags/djblets_extensions.py
        djblets/extensions/extension.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/extensions/templatetags/djblets_extensions.py
        djblets/extensions/extension.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-0.10.x (b95d4d1)
Loading...