Commit 93268eff authored by Franziska Koehn's avatar Franziska Koehn
Browse files

get_credentials() removed

parent d8a3b253
......@@ -7,17 +7,6 @@ def get_query_methods():
def get_operators():
return ["LIKE", ">", "<", "<=", ">=", "="]
def get_credentials(force=False,username="", password="" ):
if get_credentials.cache and not force:
return get_credentials.cache
from getpass import getpass
while not len(username):
username = raw_input("Username: ").strip()
while not len(password):
password = getpass().strip()
get_credentials.cache = username, password
return get_credentials()
get_credentials.cache = None
......@@ -87,8 +76,6 @@ def search_for(host, root_element, constraints, search_fields, user, passw):
from httplib import ResponseNotReady
get_credentials(username=user, password=passw, force=True)
user, passw = get_credentials() # TODO
from tempfile import mkdtemp
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment