code: def setup_app(config):
      '''Deprecated.'''
  
      if isinstance(config, str):
          data = _deserialize(config)
      elif isinstance(config, dict):
          data = config
      else:
          raise ConfigError('must provide a filename or dictionary')
  
      db_conn_data = data.pop('db', None)
      app = App(**data)
  
      if not db_conn_data:
          return app
  
      for name, conn_data in db_conn_data.iteritems():
          db = conn_data['db']
          conn_cls = _get_conn(db)
          conn_cls.construct(name=name, **conn_data)
  
      return apf setup_app(config):
      '''Deprecated.'''
  
      if isinstance(config, str):
          data = _deserialize(config)
      elif isinstance(config, dict):
          data = config
      else:
          raise ConfigError('must provide a filename or dictionary')
  
      db_conn_data = data.pop('db', None)
      app = App(**data)
  
      if not db_conn_data:
          return app
  
      for name, conn_data in db_conn_data.iteritems():
          db = conn_data['db']
          conn_cls = _get_conn(db)
          conn_cls.construct(name=name, **conn_data)
  
      return app
docs: Deprecated.