In-house patch to remove the imports of xstatic packages. These
imports are no longer needed as the static assets are collected at
package time and the xstatic modules are not being delivered.
NOTE: This patch is applied AFTER gmake install has completed rather
than during gmake prep. We need the xstatic functionality to collect
all the JavaScript libraries before packaging.
--- /usr/lib/python2.7/vendor-packages/openstack_dashboard/static_settings.py.~1~ 2016-04-26 02:16:33.459370382 -0800
+++ /usr/lib/python2.7/vendor-packages/openstack_dashboard/static_settings.py 2016-04-26 02:17:12.667657098 -0800
@@ -18,117 +18,11 @@ to match their distribution's standards.
"""
import os
-
-import xstatic.main
-import xstatic.pkg.angular
-import xstatic.pkg.angular_bootstrap
-import xstatic.pkg.angular_gettext
-import xstatic.pkg.angular_lrdragndrop
-import xstatic.pkg.angular_smart_table
-import xstatic.pkg.bootstrap_datepicker
-import xstatic.pkg.bootstrap_scss
-import xstatic.pkg.bootswatch
-import xstatic.pkg.d3
-import xstatic.pkg.font_awesome
-import xstatic.pkg.hogan
-import xstatic.pkg.jquery
-import xstatic.pkg.jquery_migrate
-import xstatic.pkg.jquery_quicksearch
-import xstatic.pkg.jquery_tablesorter
-import xstatic.pkg.jquery_ui
-import xstatic.pkg.jsencrypt
-import xstatic.pkg.mdi
-import xstatic.pkg.rickshaw
-import xstatic.pkg.roboto_fontface
-import xstatic.pkg.spin
-import xstatic.pkg.termjs
-
from horizon.utils import file_discovery
def get_staticfiles_dirs(webroot='/'):
- STATICFILES_DIRS = [
- ('horizon/lib/angular',
- root_url=webroot).base_dir),
- ('horizon/lib/angular',
- root_url=webroot).base_dir),
- ('horizon/lib/angular',
- root_url=webroot).base_dir),
- ('horizon/lib/angular',
- root_url=webroot).base_dir),
- ('horizon/lib/angular',
- root_url=webroot).base_dir),
- root_url=webroot).base_dir),
- ('bootstrap',
- root_url=webroot).base_dir),
- ('horizon/lib/bootswatch',
- root_url=webroot).base_dir),
- ('horizon/lib',
- root_url=webroot).base_dir),
- ('horizon/lib',
- root_url=webroot).base_dir),
- ('horizon/lib/font-awesome',
- root_url=webroot).base_dir),
- ('horizon/lib/jquery',
- root_url=webroot).base_dir),
- ('horizon/lib/jquery',
- root_url=webroot).base_dir),
- ('horizon/lib/jquery',
- root_url=webroot).base_dir),
- ('horizon/lib/jquery',
- root_url=webroot).base_dir),
- ('horizon/lib/jsencrypt',
- root_url=webroot).base_dir),
- ('horizon/lib/mdi',
- root_url=webroot).base_dir),
- ('horizon/lib',
- root_url=webroot).base_dir),
- root_url=webroot).base_dir),
- ('horizon/lib',
- root_url=webroot).base_dir),
- ('horizon/lib',
- root_url=webroot).base_dir),
- ]
-
- root_url=webroot).version.startswith('1.10.'):
- # The 1.10.x versions already contain the 'ui' directory.
- ('horizon/lib/jquery-ui',
- root_url=webroot).base_dir))
- else:
- # Newer versions dropped the directory, add it to keep the path the
- # same.
- ('horizon/lib/jquery-ui/ui',
- root_url=webroot).base_dir))
-
- return STATICFILES_DIRS
+ return []
def find_static_files(HORIZON_CONFIG):