From 4a73a61dd3034085c26e4139b64faa5759210f21 Mon Sep 17 00:00:00 2001 From: Leifur Halldor Asgeirsson <lasgeirsson@zerofail.com> Date: Fri, 29 Jul 2016 12:37:30 -0400 Subject: [PATCH] Use aliases when checking features --- goblin/app.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/goblin/app.py b/goblin/app.py index dbdf761..74bd979 100644 --- a/goblin/app.py +++ b/goblin/app.py @@ -42,24 +42,25 @@ async def create_app(url, loop, **config): features = {} async with await driver.GremlinServer.open(url, loop) as conn: # Propbably just use a parser to parse the whole feature list + aliases = config.get('aliases', None) stream = await conn.submit( - 'graph.features().graph().supportsComputer()') + 'graph.features().graph().supportsComputer()', aliases=aliases) msg = await stream.fetch_data() features['computer'] = msg stream = await conn.submit( - 'graph.features().graph().supportsTransactions()') + 'graph.features().graph().supportsTransactions()', aliases=aliases) msg = await stream.fetch_data() features['transactions'] = msg stream = await conn.submit( - 'graph.features().graph().supportsPersistence()') + 'graph.features().graph().supportsPersistence()', aliases=aliases) msg = await stream.fetch_data() features['persistence'] = msg stream = await conn.submit( - 'graph.features().graph().supportsConcurrentAccess()') + 'graph.features().graph().supportsConcurrentAccess()', aliases=aliases) msg = await stream.fetch_data() features['concurrent_access'] = msg stream = await conn.submit( - 'graph.features().graph().supportsThreadedTransactions()') + 'graph.features().graph().supportsThreadedTransactions()', aliases=aliases) msg = await stream.fetch_data() features['threaded_transactions'] = msg return Goblin(url, loop, features=features, **config) -- GitLab