def get_core_apps(overrides=None):
 if (not overrides):
  return OSCAR_CORE_APPS
 from django.utils import six
 if isinstance(overrides, six.string_types):
  raise ValueError('get_core_apps expects a list or tuple of apps to override')
 def get_app_label(app_label, overrides):
  pattern = app_label.replace('oscar.apps.', '')
  for override in overrides:
   if override.endswith(pattern):
    if (('dashboard' in override) and ('dashboard' not in pattern)):
     continue
    return override
  return app_label
 apps = []
 for app_label in OSCAR_CORE_APPS:
  apps.append(get_app_label(app_label, overrides))
 return apps

def get_core_apps ( overrides = None ) : if ( not overrides ) : return OSCAR_CORE_APPS from django . utils import six if isinstance ( overrides , six . string_types ) : raise ValueError ( 'get_core_apps expects a list or tuple of apps to override' ) def get_app_label ( app_label , overrides ) : pattern = app_label . replace ( 'oscar.apps.' , '' ) for override in overrides : if override . endswith ( pattern ) : if ( ( 'dashboard' in override ) and ( 'dashboard' not in pattern ) ) : continue return override return app_label apps = [ ] for app_label in OSCAR_CORE_APPS : apps . append ( get_app_label ( app_label , overrides ) ) return apps
return a list of oscars apps amended with any passed overrides .