Skip to content

Commit

Permalink
add an access point to get some info
Browse files Browse the repository at this point in the history
  • Loading branch information
jellegerbrandy committed Apr 27, 2016
1 parent 10fb48b commit 1cf8df2
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions restapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,6 @@ def main(global_config, **settings):
utils.setup_database(settings=settings)
config.registry.dbmaker = sessionmaker(bind=engine)
config.add_request_method(db, reify=True)
# # define the database connection
# sqlite_db = settings.get('sqlite_db')
# if not sqlite_db:
# raise Exception('please specify the sqlite_db setting')
# # utils.init_database(sqlite_db)
# database = utils.init_database(sqlite_db)

# if sqlite_db != ':memory:':
# # create the database file if it does not exists
# if not os.path.exists(sqlite_db):
# utils.setup_database(sqlite_db)
# try:
# database.connect()
# except Exception as error:
# msg = 'Error connecting to {sqlite_db}'.format(sqlite_db=sqlite_db)
# msg += unicode(error)
# raise Exception(msg)

config = Configurator(settings=settings)
config.include("cornice")
Expand Down

0 comments on commit 1cf8df2

Please sign in to comment.