Skip to content

Commit

Permalink
add the ability to load search components during package load, re #4771
Browse files Browse the repository at this point in the history
  • Loading branch information
apeters committed Aug 29, 2019
1 parent b7c85aa commit a08e75e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arches/management/commands/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,9 @@ def load_widgets(package_dir):
def load_card_components(package_dir):
load_extensions(package_dir, 'card_components', 'card_component')

def load_search_components(package_dir):
load_extensions(package_dir, 'search', 'search')

def load_plugins(package_dir):
load_extensions(package_dir, 'plugins', 'plugin')

Expand Down Expand Up @@ -761,6 +764,8 @@ def handle_source(source):
load_widgets(package_location)
print('loading card components')
load_card_components(package_location)
print('loading search components')
load_search_components(package_location)
print('loading plugins')
load_plugins(package_location)
print('loading reports')
Expand Down

0 comments on commit a08e75e

Please sign in to comment.