oarepo-runtime 1.5.57__py3-none-any.whl → 1.5.58__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -70,12 +70,13 @@ def collect(output_file, repository_dir, assets_dir):
70
70
  def enumerate_assets():
71
71
  asset_dirs = []
72
72
  aliases = {}
73
- theme = (current_app.config["APP_THEME"] or ["semantic-ui"])[0]
73
+ themes = current_app.config["APP_THEME"] or ["semantic-ui"]
74
74
  for ep in entry_points(group="invenio_assets.webpack"):
75
75
  webpack = ep.load()
76
- if theme in webpack.themes:
77
- asset_dirs.append(webpack.themes[theme].path)
78
- aliases.update(webpack.themes[theme].aliases)
76
+ for wp_theme_name, wp_theme in webpack.themes.items():
77
+ if wp_theme_name in themes:
78
+ asset_dirs.append(wp_theme.path)
79
+ aliases.update(wp_theme.aliases)
79
80
  return aliases, asset_dirs
80
81
 
81
82
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: oarepo-runtime
3
- Version: 1.5.57
3
+ Version: 1.5.58
4
4
  Summary: A set of runtime extensions of Invenio repository
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -5,7 +5,7 @@ oarepo_runtime/profile.py,sha256=QzrQoZncjoN74ZZnpkEKakNk08KCzBU7m6y42RN8AMY,163
5
5
  oarepo_runtime/proxies.py,sha256=NN_WNj1xuKc-OveoZmzvTFlUonNjSmLIGsv_JUcHGls,285
6
6
  oarepo_runtime/uow.py,sha256=iyF3R2oCPSVUu38GXoxZallgRD-619q1fWTb8sSaeyQ,4412
7
7
  oarepo_runtime/cli/__init__.py,sha256=daAODgUAB9Nb0O0Kg8vSgJIPKJm92EHMTRuoKwxBCug,373
8
- oarepo_runtime/cli/assets.py,sha256=uKhR2ywDR3RgGyWXuE2X-YNG0Cx-QxXJxHkAJEVV-_Y,3589
8
+ oarepo_runtime/cli/assets.py,sha256=Yrg9O2dXmrOGH87_3SNxmgrgyt2w4ZzkvQQJVTmLZjk,3634
9
9
  oarepo_runtime/cli/base.py,sha256=94RBTa8TOSPxEyEUmYLGXaWen-XktP2-MIbTtZSlCZo,544
10
10
  oarepo_runtime/cli/cf.py,sha256=W0JEJK2JqKubQw8qtZJxohmADDRUBode4JZAqYLDGvc,339
11
11
  oarepo_runtime/cli/check.py,sha256=sCe2PeokSHvNOXHFZ8YHF8NMhsu5nYjyuZuvXHJ6X18,5092
@@ -119,9 +119,9 @@ oarepo_runtime/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
119
119
  oarepo_runtime/utils/functools.py,sha256=gKS9YZtlIYcDvdNA9cmYO00yjiXBYV1jg8VpcRUyQyg,1324
120
120
  oarepo_runtime/utils/path.py,sha256=V1NVyk3m12_YLbj7QHYvUpE1wScO78bYsX1LOLeXDkI,3108
121
121
  tests/pkg_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
122
- oarepo_runtime-1.5.57.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
123
- oarepo_runtime-1.5.57.dist-info/METADATA,sha256=04oSbVDUfVteCk31LJXU2XE4oBIWgfhDyeYMDVEOeFY,4720
124
- oarepo_runtime-1.5.57.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
125
- oarepo_runtime-1.5.57.dist-info/entry_points.txt,sha256=QrlXAKuPDVBinaSh_v3yO9_Nb9ZNmJCJ0VFcCW-z0Jg,327
126
- oarepo_runtime-1.5.57.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
127
- oarepo_runtime-1.5.57.dist-info/RECORD,,
122
+ oarepo_runtime-1.5.58.dist-info/LICENSE,sha256=h2uWz0OaB3EN-J1ImdGJZzc7yvfQjvHVYdUhQ-H7ypY,1064
123
+ oarepo_runtime-1.5.58.dist-info/METADATA,sha256=9UdbdfnIle2-N6TfXHW5wlAOLYL-QDMcZ7CdU6ZbwCg,4720
124
+ oarepo_runtime-1.5.58.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
125
+ oarepo_runtime-1.5.58.dist-info/entry_points.txt,sha256=QrlXAKuPDVBinaSh_v3yO9_Nb9ZNmJCJ0VFcCW-z0Jg,327
126
+ oarepo_runtime-1.5.58.dist-info/top_level.txt,sha256=bHhlkT1_RQC4IkfTQCqA3iN4KCB6cSFQlsXpQMSP-bE,21
127
+ oarepo_runtime-1.5.58.dist-info/RECORD,,