Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loads card components with package #4008

Merged
merged 1 commit into from
Aug 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions arches/management/commands/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def handle(self, *args, **options):

if options['operation'] == 'delete_tileserver_layer':
self.delete_tileserver_layer(options['layer_name'])

if options['operation'] == 'delete_mapbox_layer':
self.delete_mapbox_layer(options['layer_name'])

Expand Down Expand Up @@ -529,6 +529,9 @@ def load_extensions(package_dir, ext_type, cmd):
def load_widgets(package_dir):
load_extensions(package_dir, 'widgets', 'widget')

def load_card_components(package_dir):
load_extensions(package_dir, 'card_components', 'card_component')

def load_reports(package_dir):
load_extensions(package_dir, 'reports', 'report')

Expand Down Expand Up @@ -580,6 +583,8 @@ def handle_source(source):
load_system_settings(package_location)
print 'loading widgets'
load_widgets(package_location)
print 'loading card components'
load_card_components(package_location)
print 'loading reports'
load_reports(package_location)
print 'loading functions'
Expand Down Expand Up @@ -1092,7 +1097,7 @@ def delete_tileserver_layer(self, layer_name=False):
tileserver_layer.map_layer.delete()
tileserver_layer.map_source.delete()
tileserver_layer.delete()

def delete_mapbox_layer(self, layer_name=False):
if layer_name != False:
try:
Expand Down