Commits

Ben Bangert committed ca3cbef

Moving webhelpers.rails import into function to avoid deprecation warning unless StaticJavascripts is still used.

Comments (0)

Files changed (1)

pylons/middleware.py

 from weberror.exceptions.errormiddleware import ErrorMiddleware
 from webob import Request
 from webhelpers.html import literal
-from webhelpers.rails.asset_tag import javascript_path
 
 import pylons
 import pylons.legacy
     
     """
     def __init__(self, **kwargs):
+        from webhelpers.rails.asset_tag import javascript_path
         self.javascripts_app = \
             StaticURLParser(os.path.dirname(javascript_path), **kwargs)