def _register_core_blueprints(app):
 def is_blueprint(mm):
  return isinstance(mm, Blueprint)
 for (loader, name, _) in pkgutil.iter_modules(['ckan/views'], 'ckan.views.'):
  module = loader.find_module(name).load_module(name)
  for blueprint in inspect.getmembers(module, is_blueprint):
   app.register_blueprint(blueprint[1])
   log.debug(u'Registered core blueprint: {0!r}'.format(blueprint[0]))

def _register_core_blueprints ( app ) : def is_blueprint ( mm ) : return isinstance ( mm , Blueprint ) for ( loader , name , _ ) in pkgutil . iter_modules ( [ 'ckan/views' ] , 'ckan.views.' ) : module = loader . find_module ( name ) . load_module ( name ) for blueprint in inspect . getmembers ( module , is_blueprint ) : app . register_blueprint ( blueprint [ 1 ] ) log . debug ( u'Registered core blueprint: {0!r}' . format ( blueprint [ 0 ] ) )
register all blueprints defined in the views folder .